hi,
if you have access to the targer system, try by
create an executable script as
/usr/local/launcher
-------------------
#!/usr/bin/ksh
$*
echo $?
exit 0
then, from the "client" system run
rsh targethost /usr/local/launcher "my command"
on output you'll see ouput of command (discard it)
and on last line return code of your command
If you want, may modify script as
echo $? > /dev/null 2>&1
or two versions .
try & by