A slightly different approach is required here I think.
command | tee -a file.log
This will put output in file.log and the terminal.
If you want to view the same log on many terminals,
do a tail -f file.log in each one.
As for autocreating a new log depending on the
output from command...emm? I think you'll have
to write something to do this yourself, like..
command | tpipe "mylogger"
Your mylogger would create the various logfiles
depending on the command output, and all the output
is copied onto the terminal.
Source for tpipe is @
> -----Original Message-----
> From: Mernagh_Will at emc.com [mailto:Mernagh_Will at emc.com]
> Sent: 15 May 2000 15:26
> To: ilug at linux.ie> Subject: [ILUG] Transfer from terminal to server
> If I have a terminal open on an NT station which is
> telnetting to a cpu and
> if my NT station is connected to a UNIX server, can I copy
> onto a log file
> (In the server) what is on my terminal screen. If so can I
> start a new log
> file every time a certain sequence of chatacters is printed
> on the terminal.
>> Will Mernagh
> Clariion Systems Test Engineering 'student'
> EMC Ireland
>mernagh_will at emc.com>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for
> (un)subscription information.
> List maintainer: listmaster at linux.ie>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!