subprocess.call

Ombongi Moraa Fe moraa.lovetakes2 at gmail.com
Fri Apr 19 05:56:10 EDT 2013


Hi Team,

In my python script, I have this:

command="lynx -dump
'phpscript?param1=%s&param2=%s&param3=%s&param4=%s&param5=%s'"%(value1,value2,value3,value4)

result=subprocess.call(command,shell=True)
print 'xml message'

However, the response from running the php script is also printed on output
screen. I don't want this output.

How can i ensure that only the last print 'xml response' is returned?

Saludos

Ombongi Moraa Faith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130419/80884775/attachment.html>


More information about the Python-list mailing list