os.system
David Smead
smead at amplepower.com
Sat Dec 4 14:49:03 EST 1999
This works in the test mode, but jeeps isn't called when executed as a
CGI. Any comments would be appreciated.
#!/usr/bin/python
import sys, cgi, string, os
print "content-type: text/html"
print
print "<title>Python Rules!</title>"
print "<body><br>"
sys.stdout.write('who done it?') # no \n at the end
print "junk"
os.system("jeeps") #doesn't get called when CGI
print "</body>"
print "</html>"
if __name__=="__main__": cgi.test()
------- here's the script called jeeps
#!/bin/sh
date > jnkdate
TIA
David Smead
http://www.amplepower.com.
http://www.ampletech.com.
More information about the Python-list
mailing list