LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to restore standard output (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-restore-standard-output-334642/)

user_linux 06-17-2005 01:27 PM

how to restore standard output
 
In my shell script i gave the following command to redirect the standard output to a logfile

exec >logfile

My question is

how do I restore the standard output to the terminal?

rjlee 06-17-2005 01:55 PM

I think you can just redirect back to /dev/tty, although it would be more normal to put the commands you want redirected into another script and run that script with redirected output:
Code:

/path/to/script >logfile

user_linux 06-17-2005 02:29 PM

thanks


All times are GMT -5. The time now is 07:28 PM.