Bits and thoughts

script

Advertisements

script is a useful command for quickly capturing a terminal session, as i just learned here:


$ script test.log
Script started, file is test.log
$ mkdir x
$ ls x/
$ exit
exit
Script done, file is test.log
$ cat test.log 
Script started on Wed 03 Aug 2011 02:33:36 PM MST
$ mkdir x
$ ls x/
$ exit
exit

Script done on Wed 03 Aug 2011 02:33:41 PM MST
Advertisements