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

Re: why doesn't this error

Thread Previous
Dave Benware
February 1, 2002 08:23
Re: why doesn't this error
Message ID:

Alex Harris wrote:
> First, I read perldoc -f exec() and did as follows:
> exec "rsh $plant /u1/bin/forkit ''" or
>        print STDERR "Couldn't fork it.\n $!\n";
> BUT, even though the file it should be exec - ing '' does NOT exist
> on the remote system, the error doesn't get kicked off.  The only error I've
> gotten it to register is if $plant is invalid.  Any ideas?

I think that instead of 'print', you should try 'warn' or 'die.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About