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

Re: why doesn't this error

Thread Previous
From:
Dave Benware
Date:
February 1, 2002 08:23
Subject:
Re: why doesn't this error
Message ID:
3C5AC0C9.B03ECFF1@Townisp.com


Alex Harris wrote:
> 
> First, I read perldoc -f exec() and did as follows:
> 
> exec "rsh $plant /u1/bin/forkit 'work.pl'" or
>        print STDERR "Couldn't fork it.\n $!\n";
> 
> BUT, even though the file it should be exec - ing 'work.pl' 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.

Bompa

Thread Previous


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