in reply to Capture Error Messages to a File? How?
However if you want to direct STDERR to STDOUT (the output from the perl prog) then do the following:jamie@lillith ~ $ perl -w perlprog.cgi >> textfile.txt 2> logfile
jamie@lillith ~ $ perl -w perlprog.cgi > logfile 2>&1
|
---|