On Wednesday, June 5, 2002, at 09:54 , lz wrote:
> 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? The homeboys have covered the basic bases.... but what you will probably want to do is get out of that approach to solving the problem to begin with. since you 'should' have been trying say $rc = system("mailx -s $subject $mailAddress < $FILENAME); saves on the pipe and spare process... { don't you just HATE old BSD freaks.... } But fortunately you also things like http://www.wetware.com/drieux/pbl/email/ where you can start to peek at other ways around that which would be more native to perl to begin with. One of the problems that you will find is that it really is NOT likely to be able to do any heavy sense of certainty about this even with 'sendmail' games directly http://www.wetware.com/drieux/pbl/Sys/howToSendEmail.txt since what you have is a dialog with a daemon that will be working asynchronously with other daemons - and a whole BUNCH of other issues. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]