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
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
> "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
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);
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