Re: display error

2001-12-03 Thread J-E-N
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 di

Re: display error

2001-12-03 Thread Jeff 'japhy' Pinyan
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

display error

2001-12-03 Thread J-E-N
below is my script but its not working as it should system("command") or die "command failed: $?\n"; what will i do so that my script will display an error once the system command failed? thanks :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT