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] .