[Tutor] Python question for beginners...

Mark C. Mason markm@lineo.com
Wed, 25 Aug 1999 11:38:38 -0600


I am doing a cgi script.  I need the script to execute a program and
return the program output as a variable preferably.
I tried using os.system("/usr/local/bin/program") but that doesn't seem
to work from within the script.  It works in the python interpretor
directly, but
not within the script.  Maybe the os.execv command???I don't know how to
use that.
any help would be greatly appreciated...

Mark