Getting return value of another script (resolved)
Dylan Reinhardt
python at dylanreinhardt.com
Wed Mar 12 18:09:35 EST 2003
It's a proven fact... nothing helps you find the documentation you're
looking for than admitting to a list that you can't find it.
Just after I posted this question, I found popen3, which is exactly what I
was looking for.
Thanks,
Dylan
At 02:45 PM 3/12/2003, Dylan Reinhardt wrote:
>Hi all,
>
>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.
>
>I'm running this with Python 2.1.3 on Gentoo Linux.
>
>Thanks in advance for any tips,
>
>Dylan
>
>
>--
>http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list