making python 2.2 show stdout and saving to file subprocess
===

I'm trying to write a python script that executes a bunch of other scripts. I want to make it so that when the script is run, the output of that script is displayed on the screen, but if it encounters a bad exit status, it will then take the output and append it to a log file. I was trying to use the "commands" interface, but this doesnt allow you to view the standard output AS WELL AS holding the data to be appended to a file. I've heard of the subprocess module but I'm not sure how to use it properly. Please note that I'm using python 2.2 (yes, it's old but I have to work with what I'm given).

Thank you.
