[Tutor] How to run a system application and get the stdout in Python?

Scott Chapman scott_list at mischko.com
Sun Nov 16 21:55:33 EST 2003


Hi!

I want to run a system application on my web server (using Draco) and send the stdout of the system command (htmldoc) to the client's web browser.

I see a number of os module possibilities to run system commands.  Here's what I'm trying to run:

/usr/bin/htmldoc -t pdf --webpage 'http://127.0.0.1/draco/wiki.dsp/Lund?cmd=View&page=FrontPage&PDF=True'

What's the best way to run this and how do I grab the stdout of the command?

Thanks!
Scott



More information about the Tutor mailing list