Feb 9, 2004 #1 parbhani Technical User Jul 3, 2002 125 GB Hi friends, A quick one. In ksh, how to do the following , 1) I want to direct the standard error to standard output 2) I want to direct standard output and error to a file Please convey. Cheers
Hi friends, A quick one. In ksh, how to do the following , 1) I want to direct the standard error to standard output 2) I want to direct standard output and error to a file Please convey. Cheers
Feb 9, 2004 #2 RanganathRamachandra Programmer Nov 24, 2003 65 IN 1. redirect stderr to stdout command 2>&1 2. redirect stderr & stdout to file command 2>errfile 1>outfile if you want both into the same file, command 2>file 1>file or command > file 2>&1 Upvote 0 Downvote
1. redirect stderr to stdout command 2>&1 2. redirect stderr & stdout to file command 2>errfile 1>outfile if you want both into the same file, command 2>file 1>file or command > file 2>&1