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

import os
print "Content-Type: text/html\n"
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 ?


try this

os.system("mkdir /root/folder")