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?
In reply to redirecting STDERR from shell commands by pike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |