[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


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 ''

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


More information about the Tutor mailing list