Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The script command typecasts the terminal activity to a particular file. I understood that part, but is there a way it can be made to append to an existing file?

The end goal for me is to make the script append the data to an existing file with a timestamp that is achieved by the date command. And ultimately have a launcher that pre-executes this upon its launch and I have a logfile of every output on my terminal. I think I have the puzzle solved except for making the script command append.

share|improve this question
up vote 6 down vote accepted

As the man pages says, the -a option is for append

script -a file

If file is missing, the default typescript filename is used.

share|improve this answer
1  
dang! i forgot to go through the man pages yet again!!! Thanks a ton @enzotib ! Cheers! – Nitin Venkatesh Jun 15 '11 at 5:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.