How to obtain a 'interactive session' of a script?

Bo Peng bpeng at rice.edu
Sun Sep 18 11:04:50 EDT 2005


Dear list,

I have a long list of commands in the form of a script and would like to 
  obtain a log file as if I enter the commands one by one. (The output 
will be used in a tutorial.) What would be the best way to do it? Copy 
and paste is not acceptable since I make frequent changes tot he script.

Many thanks in advance.
Bo



More information about the Python-list mailing list