Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Save all of your Terminal activity to a file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save all of your Terminal activity to a file
Authored by: mark hunte on May 11, '12 11:43:59PM
Thank you for this, I wish I had known about it before.
One think to note that I found: The output does not seem to be instant, it may take about 10-20 seconds to log the text.

Also a thought occurred to me, you do not need to have a separate script file to archive the logs.
Just put this in the Run command.
FORMATTED_DATE=`/bin/date "+%Y-%m-%d%H%M%S"`;/usr/bin/script  ~/Library/Logs/Terminal/terminal_$FORMATTED_DATE.log
If you want to use just one file but append to the contents then use the -a option
/usr/bin/script -a ~/Library/Logs/Terminal/Terminal.log
I have also pointed it to a folder called "Terminal" in the users logs. This way I can go into Console and find them quickly.
Edited on May 12, '12 12:05:30AM by mark hunte

[ Reply to This | # ]