[lug] How to redirect a program that writes to tty?
svqueen at gmail.com
Sat Oct 30 12:06:47 MDT 2010
> 1. How can I achieve what I want, namely redirecting everything into my
> 2. Why are they doing such a weird thing?
Off hand I can't answer question 1. I can show you a script that duplicates
echo "test this is stderr" >&2
echo "test this is stdout" > /dev/tty
/dev/tty is the current controlling terminal. I could possibly see a number
of reasons to send output their rather than stdout. One would be to ensure
that the output goes to whatever terminal started the module.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LUG