Other Help Topics :: capture command line output
If you want to capture the output from a command line session (perhaps to post as a howto! :-) you might like to use the script command.
dsl@box:~$ script
Script started, file is typescript
dsl@box:~$ date
Wed Jan 19 15:26:43 EST 2005
dsl@box:~$ Script done, file is typescript
You hit CTRL+D to stop the recording and you will find a file called 'typescript' in the local directory that contains a log of what was recorded.
If you want to be able to replay these files then you need to record timing information as well as the typescript. Use the -t option to do this...
dsl@box:~$ script -t 2> timing.log
Script started, file is typescript
dsl@box:~$ date
Wed Jan 19 15:26:43 EST 2005
dsl@box:~$ Script done, file is typescript
You will see 2 files in the local directory; typescript and timing.log. You can now playback the files in realtime using the 'replay' command...
replay timing.log typescript
Enjoy! :-)
WOW --- This is a hidden treasure.......
I stumbled on this post while looking for something else. I've done a little testing and this thing looks like it could be a big help to people.
We could record how to install DSL or some other process, (like cfdisk, maybe). Then if someone wants to see how it was done... wham, they do a download and watch the show.
Thanks for the post, lets hope others see it and start using it.
Thanks! This one is a candidate for the documentation project.
HINT, HINT.
it will be added.
Why, thank you Tronik.
Next Page...
original here.