On Wed, 2007-01-17 at 23:44 -0700, Dan Fish wrote:
> I've got a perl wrapper that conditionally runs another perl program using
> system()  
> 
> 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? 

Look up system2 in cpan.

-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to