next up previous contents
Next: Compiling, linking, running and Up: Other useful commands Previous: Watching a command   Contents

Recording a terminal session

The command script <filename> starts a new session and records all characters input or output to the terminal in the file <filename>. This is useful for submitting assignments! To stop recording type Ctrl-d or exit. An example session is shown below.

[amit@onyx]: script log
Script started, file is log
[amit@onyx]: date
Mon Oct 25 14:20:35 MDT 1999
[amit@onyx]: ls
RedHat6.0_updates  benchmarks  gnuplot-pc  log  rops32.zip  vilearn  xengine.tgz
[amit@onyx]: exit
Script done, file is log
[amit@onyx]:

Here is another example:

[amit@onyx spmd_hello_1]$ script log
Script started, file is log
[amit@onyx spmd_hello_1]$ submit amit cs430 1

*****************************************************
Right now this program is collecting the following directory

    /home/faculty/amit/cs430/lab/PVM/simple/spmd_hello_1

Make sure that the directory is the right one!!!!

If you trying to submit the previous programs(late),
 this program will time-stamp your submission.

press Return to continue.


Here are the files that will be submitted. If that is not correct,
then you can resubmit with the right files in place.

Directory: /home/faculty/amit/cs430/lab/PVM/simple/spmd_hello_1

Files:
./
./Makefile.aimk
./LINUXI386/
./spmd_hello_1.c
./log

Submission of Programming Assignment 1 is now COMPLETE.
You will be informed of your grade
after the deadline (via e-mail).

Current timestamp: Fri Dec  3 12:30:48 2004

*****************************************************
[amit@onyx spmd_hello_1]$ date
Fri Dec  3 12:30:53 MST 2004
[amit@onyx spmd_hello_1]$ exit
exit
Script done, file is log
[amit@onyx spmd_hello_1]$



Amit Jain 2009-08-23