[SLUG] Re: script

From: Chuck Hast (wchast@gmail.com)
Date: Thu Dec 30 2004 - 21:26:15 EST


On Fri, 31 Dec 2004 02:20:00 +0000, Ronald KA4INM Youvan
<ka4inm@tampabay.rr.com> wrote:
> >>Use the 'script' utility to do this.
>
> > Now I am in the dark, give me some more guidance, I had seen a simple
> > one line group of commands that you entered after you logged into a console
> > and then it would not only disply your CLI but would log it to a file. It was as
> > was pointed out a tee type thing, but can not remember the bits and pieces
> > of it.
>
> From "man script":
> script - make typescript of terminal session
>
> Script makes a typescript of everything printed on your terminal. It is
> useful for students who need a hardcopy record of an interactive session
> as proof of an assignment, as the typescript file can be printed out
> later with lpr(1).
> and
> Script places everything in the log file, including linefeeds and
> backspaces. This is not what the naive user expects.
> also
> script [-a] [-c COMMAND] [-f] [-q] [-t] [file]
>
> like: script convert *gif *.png <Enter>
> much more . . .
>
> Then:
> The script ends when the forked shell exits (a control-D to exit the
> Bourne shell (sh(1)), and exit, logout or control-d (if ignoreeof is not
> set) for the C-shell, csh(1)).

Ahhhhhhhh yyyyeessssss (after whacking my self with a 2X4...) NOW I
understand. All that under my hair is thick bone protecting one neuron...

The application is called "script" and it does exactly what is needed.
THANKS to Kwan for pointing it out and Ronald for applying 2x4 just above left
ear!!.
I shall get on with my rat kill'n now...

-- 
Chuck Hast 
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:51:05 EDT