The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Printing output to the monitor
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Printing output to the monitor
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-22-2004
Ygor
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"
Ygor
View Public Profile
Find all posts by Ygor