Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: capture command line output, the script command< Next Oldest | Next Newest >
petergunn Offline





Group: Members
Posts: 40
Joined: Nov. 2004
Posted: Jan. 19 2005,20:40 QUOTE

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! :-)
Back to top
Profile PM 
newOldUser Offline





Group: Members
Posts: 241
Joined: Oct. 2004
Posted: Feb. 05 2005,00:40 QUOTE

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.


--------------
======== Note =========
The DSL Forum Search default is 'OR'
If you search for "cat dog" you will get all "cat" posts and all "dog" posts.
If you search for "cat AND dog" you will only find results that contain BOTH "cat" and "dog"
Add '*' for wildcards, " cat* and dog* "
Back to top
Profile PM 
green Offline





Group: Members
Posts: 453
Joined: Oct. 2004
Posted: Feb. 05 2005,02:06 QUOTE

Thanks!  This one is a candidate for the documentation project.

HINT, HINT.
Back to top
Profile PM 
tronik Offline





Group: Members
Posts: 182
Joined: Dec. 2004
Posted: Feb. 05 2005,02:57 QUOTE

it will be added.

--------------
-william
atlanta, GA, USA

DSL 1.0+2.4.27/sata : P4 2.4norwood : 512ddr2 : nvgf4ti4200-64 : 128mbLexar Jumpdrive Elite
Back to top
Profile PM WEB 
green Offline





Group: Members
Posts: 453
Joined: Oct. 2004
Posted: Feb. 05 2005,06:47 QUOTE

Why, thank you Tronik.
Back to top
Profile PM 
5 replies since Jan. 19 2005,20:40 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: capture command line output

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code