the docs explain the return codes for system, this is what i used:
my $err = $? >> 8;
if ($err) { print "puked\n" }
else {print " success\n"}
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 12:54 PM
To: [EMAIL PROTECTED]
Subject: checking return code
Hi guys,
I have the following line:
system("cat $FILENAME | mailx -s \"test\" $mailAddress
");
How can I check whether mailx operation above was
successful or not?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]