Tuesday, November 22, 2011

Script Terminal Session



script -f /tmp/filename
will place all output of the terminal, including carriage returns, to a file (/tmp/filename)

So then on another terminal session type
tail -f /tmp/filename

 This file can be tail -f by one or more terminals to display Live the information of the main terminal.
Great  way to share your screen on short notice.


to Stop scripting type
 <Cntrl> D

No comments: