develooper Front page | perl.beginners | Postings from February 2002

RE: still not catching error

Thread Previous | Thread Next
From:
Bob Showalter
Date:
February 1, 2002 13:51
Subject:
RE: still not catching error
Message ID:
2E4528861499D41199D200A0C9B15BC031B7E3@FRISTX
> -----Original Message-----
> From: Alex Harris [mailto:atkharris@hotmail.com]
> Sent: Friday, February 01, 2002 11:52 AM
> To: beginners@perl.org
> Subject: still not catching error
> 
> 
> I took out the exec and placed system.  But even though 
> work.pl doesn't 
> exist on the remote system, still getting no error.  Help!
> 
> if (system("rsh $plant /u1/bin/forkit '/u1/bin/work.pl'") > 0)
>       {
>         excep(" $!\n");
>       }

The exit status of rsh is 0 if it was able to connect to the remote
system. It doesn't return the exit status of the command being run.

Try this search for some suggestions on handling this issue:

http://groups.google.com/groups?hl=en&q=rsh+exit+status

HTH

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About