Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43893

RE: subprocess.call

From Ombongi Moraa Fe <moraa.lovetakes2@gmail.com>
Date 2013-04-19 12:56 +0300
Subject RE: subprocess.call
Newsgroups comp.lang.python
Message-ID <mailman.819.1366365414.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

RE: subprocess.call Ombongi Moraa Fe <moraa.lovetakes2@gmail.com> - 2013-04-19 12:56 +0300
  Re: subprocess.call Mau C <nobody@hotmail.com> - 2013-04-19 12:32 +0200
  Re: subprocess.call jt@toerring.de (Jens Thoms Toerring) - 2013-04-19 14:43 +0000

csiph-web