reading arguments in python script when passed from URL

phaneendra s phaneendra21 at gmail.com
Wed Apr 15 02:24:24 EDT 2009


hi alll..


iam invoking a python script from a standalone client which looks lik this


String command="ln -s /usr/lib /tmp/lin";   //creating a soft link

URL url = new URL("http://server-name/cgi-bin/finalexec1.py?command=
"+command);

but iam not able to read this command in the python script

in my script i tried doing
for arg in sys.argv;
print arg


but the command is not being read......

is  it the right way of reading arguments in python script?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090415/704f27cd/attachment.html>


More information about the Python-list mailing list