Re: HowTo?: Log Everything - file

1998-02-17 Thread mwb
On Mon, 16 Feb 1998, Bob Bernstein wrote:

 What's the trick to getting into a file all the contents of a console session,
 i.e. commands, and the output of commands, into a log file for that session?

script filename

Mark
[EMAIL PROTECTED]



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: HowTo?: Log Everything - file

1998-02-17 Thread john
Bob Bernstein writes:
 What's the trick to getting into a file all the contents of a console
 session, i.e. commands, and the output of commands, into a log file for
 that session?

That is exactly what 'script' is for.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: HowTo?: Log Everything - file

1998-02-16 Thread Ben Pfaff
   What's the trick to getting into a file all the contents of a console 
session,
   i.e. commands, and the output of commands, into a log file for that session?

Try the script(1) command.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: HowTo?: Log Everything - file

1998-02-16 Thread Joey Hess
Bob Bernstein wrote:
 What's the trick to getting into a file all the contents of a console session,
 i.e. commands, and the output of commands, into a log file for that session?

The script command.

-- 
see shy jo


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


RE: HowTo?: Log Everything - file

1998-02-16 Thread Frederic Dumont
On 16-Feb-98 Bob Bernstein wrote:
What's the trick to getting into a file all the contents of a console
session,
i.e. commands, and the output of commands, into a log file for that
session?

'telnet localhost | tee log_file_name' will work (I found this in the Linux
Journal).

 Frederic Dumont  / /  (_)__  __   __
 [EMAIL PROTECTED]   / /__/ / _ \/ // /\ \/ /
PGP key 0711F125//_/_//_// /_/\_\  forever!!!
http://www.info.fundp.ac.be/~fdm


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: HowTo?: Log Everything - file

1998-02-16 Thread James Troup
Bob Bernstein [EMAIL PROTECTED] writes:

 What's the trick to getting into a file all the contents of a
 console session, i.e. commands, and the output of commands, into a
 log file for that session?

Have a look at `script'(1) from bsdutils.

-- 
James


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: HowTo?: Log Everything - file

1998-02-16 Thread Steve Mayer
Bob,

  One way that I know of is:

  telnet localhost | tee session.txt

  Other people that telnet into the machine can then 'tail -f
session.txt' and see exactly what you are doing.  Very good for doing
training sessions.

Hope this helps,

Steve Mayer
[EMAIL PROTECTED]

Bob Bernstein wrote:
 
 Ok, ok, I haven't posted a Linux-For-Dummies question in quite awhile, so here
 goes:
 
 What's the trick to getting into a file all the contents of a console session,
 i.e. commands, and the output of commands, into a log file for that session?
 
 I have fooled around with $bash --login  session.txt, but that doesn't grab
 everything that goes by on the screen. I'm sure this is hidden somewhere in my
 dog-eared copy of _Running Linux_, but I'll be ding-danged if I can find it.
 
 TIA
 
 -
 Bob Bernstein [EMAIL PROTECTED]
 at
 Esmond, R.I.   http://www.brainiac.com/bernie
 
 --
 TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
 [EMAIL PROTECTED] .
 Trouble?  e-mail to [EMAIL PROTECTED] .


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: HowTo?: Log Everything - file

1998-02-16 Thread Craig Sanders
On Mon, 16 Feb 1998, Bob Bernstein wrote:

 Ok, ok, I haven't posted a Linux-For-Dummies question in quite awhile,
 so here goes:

 What's the trick to getting into a file all the contents of a console
 session, i.e. commands, and the output of commands, into a log file
 for that session?

 I have fooled around with $bash --login  session.txt, but that
 doesn't grab everything that goes by on the screen. I'm sure this is
 hidden somewhere in my dog-eared copy of _Running Linux_, but I'll be
 ding-danged if I can find it.

'script' is the command you are looking for (e.g. 'script /tmp/logfile'). 

it forks a sub-shell, and all input  output is logged to the logfile. 
scripting ends when the sub-shell ends (e.g. you type exit) 

see man script for details.

craig

--
craig sanders


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .