[lug] STDERR, STDOUT redirect...

D. Stimits stimits at idcomm.com
Wed Mar 14 23:39:47 MST 2001


"S. Luke Jones" wrote:
> 
> 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

Another related/useful utility is the "tee" program. Check "man tee".



More information about the LUG mailing list