I've got a perl wrapper that conditionally runs another perl program using system()
Something like: If( some_condition_applies){ system("myperlscript.pl"); } myperlscript.pl will complete silently if everything runs right, but because it reads some data files and interfaces to a mySQL database, there are times when it may encounter unforeseen errors. IF there is any output from myperlscript.pl, I'd like to capture it and send it off in an email. The sending in an email part I can handle. and I think I can probably redirect the output of myperlscript.pl to a file and read that, but is there a better, more elegant way to capture any stdout/stderr output WITHOUT having to redirect and read another file? Thanks! -Dan