[lug] STDERR, STDOUT redirect...

S. Luke Jones luke at frii.com
Wed Mar 14 22:07:45 MST 2001


Eric A Kihn wrote:
> /home/ekihn/j4/scripts/process_j4.pl 1>& /dev/null 2>>& /tmp/j4.error
> 
> Where the STDOUT gets dumped but errors go to a log.  The syntax above 
> is one of the permutations I've tried.  

With Bourne-type shells (sh, ksh, bash) you should do

	$ some | random | pipeline >/dev/null 2>the_log_file

-- 
Luke Jones = luke/vortex/frii/fullstop/com



More information about the LUG mailing list