SUMMARY: tee for stdin???

From: Kevin A. Noll (knoll@csl-emh2.army.mil)
Date: Mon Feb 27 1995 - 23:19:26 CST


Boy! What a dunce I am sometimes <8=)

Thanks to everyone that responded. Unanimous response was to use the
'script' command. I knew it was there, but had totally forgotten
about it.

I also received a couple of excerpts to put in .cshrc or .login
to start 'script' properly when someone log's in as root (or su).

From: perryh@pluto.rain.com

>You'll need to do some recursion prevention, since script starts
>another shell which again reads .cshrc, and you'll probably want to
>log each terminal or window separately, something like (untested)

> if (! $?SCRIPTFILE) then
> set tty=`tty`
> setenv SCRIPTFILE `basename $tty`
> unset tty
> echo "start `date` `who am i`" >> /var/adm/rootlogs/$SCRIPTFILE
> script -a /var/adm/rootlogs/$SCRIPTFILE
> echo "end `date` `who am i`" >> /var/adm/rootlogs/$SCRIPTFILE
> endif

Thanks to:

Ted Nolan SRI Ft Gordon <ted@ags.ga.erg.sri.com>
pjw@ccci.com (Pete Welcher)
mikem@centerline.com
Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
Gary Blumenstein <garyb@gcm.com>
Mike Fletcher <jmf@bselab.bls.com>
perryh@pluto.rain.com (Perry Hutchison)
etnibsd!vsh@uunet.uu.net (Steve Harris)
Glenn.Satchell@uniq.com.au(Glenn Satchell - Uniq Professional Services)
"Christopher A. Stewart" <allan@stewpot.home.networx.com>
Chris.Cooper@arup.co.uk

--kan--

--
Kevin A. Noll, KD4WOZ            kan@crc.com
Electrical Engineer             (407) 352-3700 vox
Coleman Research Corporation
Orlando, FL
#define PWD "Carlisle Barracks, PA"



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:17 CDT