Advertisement

08.10.2007 at 01:31PM PDT, ID: 22755694
[x]
Attachment Details

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

Asked by elwayisgod in KornShell (ksh), Unix Systems Programming, Bourne Shell (sh)

Tags: stderr, stdout, tee, shell, korn

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

Start Free Trial
[+][-]08.10.2007 at 01:34PM PDT, ID: 19673408

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.10.2007 at 01:36PM PDT, ID: 19673418

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: KornShell (ksh), Unix Systems Programming, Bourne Shell (sh)
Tags: stderr, stdout, tee, shell, korn
Sign Up Now!
Solution Provided By: amit_g
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628