Re: Capturing STDOUT of system launched process

2001-12-13 Thread Jon Molin
hew Blacklow" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, September 27, 2001 12:44 AM > Subject: Capturing STDOUT of system launched process > > > I am writing a script at the moment which among others things creates > > another proce

Re: Capturing STDOUT of system launched process

2001-12-13 Thread insomniak
asiest. Anyone else have any comments? regards Mark Kneen - Original Message - From: "Matthew Blacklow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 27, 2001 12:44 AM Subject: Capturing STDOUT of system launched process > I am writing a s

Re: Capturing STDOUT of system launched process

2001-09-26 Thread smoot
> "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> said: > Of course, all of these should have error-checking: > > $x = `...` or die "can't run ...: $!"; > > open OUTPUT, "... |" or die "can't run ...: $!"; Don't forget to check the close for errors. If the pipe fails for some reason close retur

Re: Capturing STDOUT of system launched process

2001-09-26 Thread Jeff 'japhy' Pinyan
On Sep 27, Matthew Blacklow said: >What I need to do is capture the screen output of this process into a string >variable so that it can latter be manipulaterd. ie. capture the STDOUT. Several options: # qx() and `` are the same $output = `prog arg1 arg2`; $output = qx(prog arg1 arg2);

Capturing STDOUT of system launched process

2001-09-26 Thread Matthew Blacklow
I am writing a script at the moment which among others things creates another process using the system call. What I need to do is capture the screen output of this process into a string variable so that it can latter be manipulaterd. ie. capture the STDOUT. Any help, suggestions or sample code wo