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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ending file redirection

Status
Not open for further replies.

jbbooks

Instructor
Feb 8, 2006
2
US
I'm new to ksh scripting but I've been programming for many years. I'm having trouble ending the following redirection: exec 3>&1 > ${LogFile} 2>&1 What I need to do is set stdout back to the screen instead of the LogFile.

thanks
JB
 
You may try this:
exec >&3 2>&1 3>&-

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top