CGI

2015-12-27 Thread Pol Hallen

Merry Christmas to all :-)

A (newbie) question: I'd like learn about CGI pyhton script to create 
some utility using http://localhost/python_script01.py


Something like that:

#!/usr/bin/python
print "Content-type: text/html"
print
print ""
print "Hello!"
print ""

How can I execute a local command (like ls or similar) and show output 
via browser?


I didn't find enough documentation to work with python and CGI :-/

Is python not good language to use it with CGI?

Thanks for help! :)

Pol
--
https://mail.python.org/mailman/listinfo/python-list


CGI

2015-12-27 Thread Pol Hallen

Merry Christmas to all :-)

A (newbie) question: I'd like learn about CGI pyhton script to create 
some utility using http://localhost/python_script01.py


Something like that:

#!/usr/bin/python
print "Content-type: text/html"
print
print ""
print "Hello!"
print ""

How can I execute a local command (like ls or similar) and show output 
via browser?


I didn't find enough documentation to work with python and CGI :-/

Is python not good language to use it with CGI?

Thanks for help! :)

Pol
--
https://mail.python.org/mailman/listinfo/python-list