The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: a question
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-23-2006
ranj@chn ranj@chn is offline
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
a question

I was experimenting with redirection. Manual says
>&digit --> standard output is redirected to the file descriptor digit

I tried
exec 3>myout
exec >&3


This sent all the output to myout. Nothing was coming on the screen. I was thinking duplication will result in output similar to what tee gives. Am I wrong in understanding?

One more thing. Once I have redirected this to 3, How do I disable it or how do I redirect the output back to screen again.
Reply With Quote
Forum Sponsor