From: Brady, Padraig (Padraig.Brady at domain compaq.com)
Date: Mon 15 May 2000 - 15:48:35 IST
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 at domain
ftp://ftp.oreilly.com/pub/examples/power_tools/unix/split/tpipe.shar
> -----Original Message-----
> From: Mernagh_Will at domain emc.com [mailto:Mernagh_Will at domain emc.com]
> Sent: 15 May 2000 15:26
> To: ilug at domain linux.ie
> Subject: [ILUG] Transfer from terminal to server
>
>
> Okay.
> 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.
> rgds
> Will
>
> Will Mernagh
> Clariion Systems Test Engineering 'student'
> EMC Ireland
> mernagh_will at domain emc.com
>
> --
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for
> (un)subscription information.
> List maintainer: listmaster at domain linux.ie
>
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:09 GMT