Python equivalent of script(1)

Thomas Rast foo.bar at freesurf.ch.invalid
Sat Jan 1 14:39:50 EST 2005


cepl at surfbest.net writes:

> I would love to have a record of all what I've done, so I can edit
> this record into final script.

You can save the current input history with

>>> import readline
>>> readline.write_history_file("python.log")

If you want to log your whole session, including output, try using the
'screen' utility.

HTH
- Thomas

-- 
If you want to reply by mail, substitute my first and last name for
'foo' and 'bar', respectively, and remove '.invalid'.



More information about the Python-list mailing list