in reply to unix commands
If you want to direct the output of both stdout and stderr to the same file, use:
system "command > output.txt 2>&1"; [download]
"2>&1" basically means "redirect filehandle 2 (stderr) to the same place as filehandle 1 (stdout)".