The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-22-2004
Ygor's Avatar
Ygor Ygor is offline
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,226
You can write to the current terminal using /dev/tty

e.g: echo "message" >/dev/tty

You could even open a new file descriptor.

e.g: in ksh:

exec >file.log 2>&1 3>/dev/tty
:
print -u3 "message"
Reply With Quote