Question : Korn Shell - Redireict the stderr and stdout to a file using TEE command

Hi

Is there a way using TEE command to direct the stderr and the stdou  to a file.  Currently only the stdout is hitting my file with this command and the stderr is hitting the screen:

call Essbase_Bkup.bat | tee F:\EssbaseBackup\Daily\Error_Log.txt

At end of day, I need the Error_Log.txt to contain both

Thanks,

Sam

Answer : Korn Shell - Redireict the stderr and stdout to a file using TEE command

Try it this way ...

call Essbase_Bkup.bat 2>&1 | tee F:\EssbaseBackup\Daily\Error_Log.txt
Random Solutions  
 
programming4us programming4us