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:

#!/bin/bash
/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

About

man script

iTerm

Get http://iterm.sourceforge.net/

Shell > Log > Start / Stop

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