pike has asked for the wisdom of the Perl Monks concerning the following question:
system ("($cmd) &> $log")
and then reads from the file $log. The problem with this is, it works fine with csh, but not with sh / bash. Is there a way to read STDERR which doesn't depend on the shell?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: redirecting STDERR from shell commands
by AidanLee (Chaplain) on Sep 07, 2001 at 16:17 UTC | |
by Rhose (Priest) on Sep 07, 2001 at 17:04 UTC | |
by seesik (Initiate) on Sep 07, 2001 at 17:33 UTC | |
|
Re: redirecting STDERR from shell commands
by busunsl (Vicar) on Sep 07, 2001 at 16:31 UTC | |
by pike (Monk) on Sep 07, 2001 at 18:01 UTC | |
by tye (Sage) on Sep 07, 2001 at 21:46 UTC | |
|
Re: redirecting STDERR from shell commands
by runrig (Abbot) on Sep 07, 2001 at 19:22 UTC |