On 8/22/06, Mark Phalan <[EMAIL PROTECTED]> wrote:
On Tue, 2006-08-22 at 20:44 +0800, Steven Sim wrote:
> Hey Gurus;
>
> FORGIVE me if this is not the place to post this small scripting issue.
>
> I wish to run the following Korn shell command in a script
>
> rsh -n -l <user> <remote-host> "cksum <file>"
>
> if [[ $? -ne 0 ]];
>     <statements>
> fi
>
> The above would not successfully capture an error condition if <file>
> did not exist in the remote server..
>
> The remote rsh execution facility does not return the exit code of the
> remote command.
>
> Any ideas?
>

Why not use ssh?

ssh needs some time to connect and adds significant latency to the
connection. This may not be desired in some applications
--
Holger
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to