0

Hello,

I want ask something about Python CGI

How can i use python on web application to run commands on the server

For example :
like in php when you will use "exec" function

#!/usr/bin/python
import os
print "Content-Type: text/html\n"
os.mkdir("/root/folder")
print "done"


this simple script working good if you run it from SSH "server root" but when i use it web application not working

any one can help me about this issue ?

Thanks

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by ShadyTyrant
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.