Re: Executing commands, getting both STDOUT and STDERR from command

2001-06-19 Thread Michael Fowler
On Tue, Jun 19, 2001 at 11:09:26AM -0400, Craig Moynes/Markham/IBM wrote: > Hi, > I am running several commands within my perl script (on AIX 4.3.3). > These commands include find, chmod, etc. > What I am wondering is if anyone has a sample script kicking around where > they execute the comma

Re: Executing commands, getting both STDOUT and STDERR from command

2001-06-19 Thread Gary Stainburn
Hi Craig, As I understand it, perl calls a shell to run the command you specify so you should be able to use standard shell redirectors, as in: open(INPUT,"$findCMD 2>&1|") which should DUP the stderr to stdout for you. (not tested) Gary On Tuesday 19 June 2001 4:09 pm, Craig Moynes/Markha