Script

The script command is used to record activities done at the command line in a file. (NB you can do something similar, but with more flexibility using the shell subprocess window in emacs).

How does it work?

  1. Once your logged in, type "script".
  2. Do whatever you want recorded.
  3. Type C-d (control-d).
  4. Everything you did is now in the file "typescript".
Here's a sample of using "script" (i.e. the contents of "typescript"):

Script started on Wed Jan  7 17:25:09 1998
umbc9[1]% cat /etc/motd

               Welcome to the GL Computing Cluster at UMBC

-------------------------------------------------------------------------
o  Please report problems and significant observations by sending e-mail
   to "systems".  Make sure to include details on what machine and at
   what time the problem occurred.
-------------------------------------------------------------------------

       Please send all questions and comments to systems@gl.umbc.edu


IMPORTANT NOTICE:  This machine is running Irix 6.2!  Certain things may
behave differently than under Irix 5.3 (the previous OS), or may not work
at all.  If you encounter any problems, send mail to systems@gl.umbc.edu

umbc9[2]% ls /
CDROM        dev          mail         sbin         umbc         var
bin          etc          mnt          scratch      unix
core         lib          opt          stand        unix.111497
debug        lib32        proc         tmp          usr            
umbc9[3]% file /core
/core:          IRIX N32 core dump of 'in.identd'
umbc9[4]% 
script done on Wed Jan  7 17:26:21 1998