If you want to direct the output of both stdout and stderr to the same file, use:
system "command > output.txt 2>&1";
"2>&1" basically means "redirect filehandle 2 (stderr) to the same place as filehandle 1 (stdout)".
In reply to Re: unix commands
by converter
in thread unix commands
by Yifat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |