one way I have done this in the past is

open(COM, "parse.pl |") || die("fork failed: \l$!\n");
while ( <COM> ) {
        blah
}
close COM



> -----Original Message-----
> From: Sofia [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 10, 2001 13:21
> To: [EMAIL PROTECTED]
> Subject: Gathering output from a program
> 
> 
> I execute a program from within my script called
> infoerr_parse.pl that produces some output that I need
> to gather.
> 
> I have the following in my script:
> 
> :
> :
> @output = `infoerr_parse.pl`;
> print LOG "@output\n";
> 
> Now, infoerr_parse.pl pings some machines and creates
> the following output:
> infoerr: info_get_data() timed out for node 27
> infoerr: info_get_data() timed out for node 37
> Message errors for node(s) 0..50
> There seems to be 0 nodes propagating errors.
> 
> When I gather this output on @output array, I don't
> get the lines that say "..timed out for node.." 
> 
> Does anybody know how I can gather all the output?
> 
> Thanks in advance.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with 
> Yahoo! Messenger
> http://im.yahoo.com
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to