Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ksh redirection question

Status
Not open for further replies.

msteder

Technical User
Jan 30, 2003
72
US
I am running a ksh menu script from the command prompt which does a dump, I want the output to show up on the screen as well as redirect to a file.

I have tried running the menu script with | tee /var/log/test.log

I have tried exec $OUTLOG 2&>1 in the ksh script

I have tried exec 2&>1 | tee /var/log/test.log

I have tried adding | tee /var/log/test.log to the dump command in the script.

I can get my script output to both places but it will not redirect the dump logging statements.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top