Thanks, I'll give this a try when I get a chance and will post back if we have
any issues.
-Pete
"Grig Gheorghiu" <[EMAIL PROTECTED]> wrote:
> subprocess gets my vote too.
>
> You can do something like:
>
> from subprocess import call, Popen, PIPE, STDOUT
>
> def run_cmd(cmd):
> ....arglist = cmd.split()
> ....p = Popen(arglist, stdout=PIPE, stderr=STDOUT)
> ....output = p.communicate()[0]
> ....return (p.returncode, output)
>
> rc, output = run_cmd("python setup.py test")
> if rc:
> ....print "Command failed"
> ....sys.exit(rc)
>
> Grig
--
http://mail.python.org/mailman/listinfo/python-list