Couple ways to do this.

script command

mkdir ~/Documents/Logs
sudo nano /usr/bin/terminalLogging
sudo chmod 755 /usr/bin/terminalLogging

Put this into the file:

/usr/bin/script ~/Documents/Logs/`date +%m.%d.%y-%H.%M.%S`.$$

Integrate with mac terminal

In the terminal options, set to run:

sh terminalLogging


man script



Shell > Log > Start / Stop

technology/unix/logterminalsessions.txt · Last modified: 02.27.2009 15:21 by
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki