next up previous contents
Next: Obtaining information about other Up: Other useful commands Previous: Finding the date and   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>. For example, this is useful for keeping a proof of submitting an 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 2012
[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 chap01]$ script log
Script started, file is log
[amit@onyx chap01]$ submit amit cs125-2 p6

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

    /home/faculty/amit/cs125/programs/chap01 

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/cs125/programs/chap01

Files:
./
./Lincoln3.java
./log
./Makefile
./Lincoln2.java
./Lincoln.java

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

Current timestamp: Thu Apr 18 22:29:35 2013

***************************************************** 
[amit@onyx chap01]$ exit
exit
Script done, file is log
[amit@onyx chap01]$



Amit Jain 2013-04-22