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? |
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 |
thanks
|
All times are GMT -5. The time now is 07:28 PM. |