Getting return value of another script

Alex Martelli aleax at aleax.it
Thu Mar 13 03:44:37 EST 2003


Dylan Reinhardt wrote:

> I'm trying to launch a shell script from Python, but I want to get the
> actual output of the script, not just the shell's exit status.  Unless I'm
> missing something, it doesn't appear that os.exec* or os.spawn* return
> anything but the exit status.

Right.  See os.popen and friends.


Alex






More information about the Python-list mailing list