I\'d like to have real-time access to both interpreter input and error and standard output. Preferably this information would be written to a file, so that I can poll the fi
You can simply use the unix script command, try:
script -a filename.txt
python
>> print("hi")
hi
>> exit()
exit
filename.txt will record everything you did on that session, it will look something like this:
Script started on Sat Dec 14 11:18:41 2013
python
>> print('hi')
hi
>> exit()
exit
Script done on Sat Dec 14 11:18:59 2013