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
You'll need to use the backticks instead of the system call.
$output = `command`;
To get each line of the output, you'll need to split off of \n.
-Ray Graham
On Thu, 27 Sep 2001, Matthew Blacklow wrote:
Date: Thu, 27 Sep 2001 09:22:41 +1000
From: Matthew Blacklow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Perl Scripting help
I am writing a script at the moment which among others things creates
another process using the system call.
What
On Thu, Sep 27, 2001 at 09:22:41AM +1000, Matthew Blacklow wrote:
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