exec - (built-in) used to fork new processes.

exec - (built-in) when used with redirection, 
  allows additional file descriptors.

< - stdin, > - stdout, and 2> - stderr 
  are standard file descriptors and are set to your display terminal.

Run tty to see what it actually is.


Use exec to assign/create additional file descriptors.


Alternatively, you can use a file descriptor to store terminal's ID 


This will also work for standard input (0).

check out :
  http://wiki.bash-hackers.org/howto/redirection_tutorial
  http://tldp.org/LDP/abs/html/x17974.html