Perl Scripting help

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

Re: Perl Scripting help

2001-09-26 Thread Ray Graham
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

Re: Perl Scripting help

2001-09-26 Thread Ken Y. Clark
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

Re: Perl Scripting help

2001-09-26 Thread Brian Reichert
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