Re: Redirecting STDOUT and STDERR for system()

2009-07-06 Thread Eric Veith
That works like a charm -- thanks! "Chas. Owens" wrote on 07/05/2009 03:57:34 AM: > From: > > "Chas. Owens" > > To: > > Eric Veith/Germany/i...@ibmde > > Cc: > > beginners@perl.org > > Date: > > 07/05/2009 03:58 AM > > Subj

Re: Redirecting STDOUT and STDERR for system()

2009-07-04 Thread Chas. Owens
On Thu, Jul 2, 2009 at 04:36, Eric Veith wrote: > > Hello List, > > as part of a Perl script of mine, I want to execute a program, get its > return code AND capture its output on both STDERR and STDOUT. I tried > IO::Handle, but that only gives me STDOUT and not the return code. Using > qr//, I can

Redirecting STDOUT and STDERR for system()

2009-07-02 Thread Eric Veith
Hello List, as part of a Perl script of mine, I want to execute a program, get its return code AND capture its output on both STDERR and STDOUT. I tried IO::Handle, but that only gives me STDOUT and not the return code. Using qr//, I cannot read linewise and have to load the complete program's ou