[plug] TTYs
Bernard
bernard at blackham.com.au
Fri Oct 26 21:20:57 WST 2001
On Fri, Oct 26, 2001 at 10:03:15AM +0800, locutus at borg.apana.org.au wrote:
> Is there a way that I can watch what's happening on another TTY
> without switching from my current one?
>
> For instance, if there's a process running on tty01, is there a way I
> can see what it's doing (actual output, NOT process info) from tty05?
One option, might be to use 'tee'.... Reads stdin, writes to stdout
as well as another file.
eg, tty01:
./someprogram | tee /tmp/output.log
on tty05:
tail -f /tmp/output.log
or if you want to capture stderr as well, use
./someprogram 2>&1 | tee /tmp/output.log
This solution may or may not suit depending on what your aiming to
do. But worth a mention.
Regards,
Bernard.
--
Bernard Blackham
bernard at blackham.com.au
More information about the plug
mailing list