English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am wanting a line I can add to a script file which will log the activity of the script file for later debugging purposes.

2007-07-01 11:05:00 · 2 answers · asked by StingRay 3 in Computers & Internet Programming & Design

2 answers

run in verbose mode.
set -v (do not remember exactly)

2007-07-01 19:30:39 · answer #1 · answered by easymf co in 3 · 0 0

script foo.txt

... will open up a subshell and record all input and output to the named file (in this example "foo.txt").

The manpage says:

"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 lat­er with lpr(1)."

2007-07-01 18:16:26 · answer #2 · answered by McFate 7 · 0 0

fedest.com, questions and answers