thanks for the help ...

i tried
system("/usr/bin/fetchmail -aK -f /tmp/$uid.rc")==0 or die "command failed:
$!($?)\n";

but still, does not display the exit code ...

any suggestion?



> On Dec 4, J-E-N said:
>
> >below is my script but its not working as it should
> >
> >system("command") or die "command failed: $?\n";
>
> system() returns 0 on SUCCESS, not failure.
>
>   system("command") == 0 or die "command failed: $! ($?)";
>
> perldoc -f system
>
> --
> Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
> RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
> ** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to