Using tee to create a log

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Gorman, John
Date:  
Subject: Using tee to create a log
Hi.

Here is an example: telnet hostname | tee hostname.log

What this does is telnet to host hostname and record the commands
and output from that into the currenct directory as the filename
hostname.log.

By the way, this is an excellent way to record your testing history,
or save your actions for someone who wants to follow what you did at
a later time.

John

-----Original Message-----
From: Alan Dayley [mailto:adayley@adtron.com]
Sent: Thursday, July 26, 2001 11:26 AM
To:
Subject: Using tee to create a log



I have a command line utility that spits out data on the screen as it runs.
I want to capture this data to a "log" file so I can read it later. I
have been told the tee command will do this for me but I can't seem to get
the command line correct as the log file is always empty.

The man and info pages are not very helpful to me since I am just learning
this piping commands stuff.

Alan


________________________________________________
See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post
to the list quickly and you use Netscape to write mail.

PLUG-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss