Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.077 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.03; 'output': 0.05; 'subject:skip:s 10': 0.07; 'screen.': 0.09; 'python': 0.11; "response'": 0.16; 'script,': 0.16; 'team,': 0.22; 'print': 0.22; 'script': 0.25; 'this:': 0.26; 'message-id:@mail.gmail.com': 0.30; 'saludos': 0.31; 'running': 0.33; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'ensure': 0.60; 'skip:r 40': 0.68; "message'": 0.84; 'received:mail-ob0-x22f.google.com': 0.84; "skip:' 110": 0.84; 'faith': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=FFyb9IiEhOqi+pboluOmBbZaZyga+qxuxdhumXKFYfI=; b=zDPtnS3ZABwPkNpoffiB6XUeQpI4QGrTDrR4EBSj2PEJCvQ3U04PvkhZ+cV8dt1Ts+ ckGXjdYPwtZ4v9UflmyJg28PQXDzcvu3omhguxiPlDLJrui6KQXuMI3xAzrh27LG1ySo sKVksVOHW3SEp6xadaLbIJW//9j7/X3Oa5/RhGSw+4fontqJj9f3WiVhIP1kZVg3jbxO xgbpcZKMXoidpb61YDyKWSdEz4p3BrETaeLpg5Yj+JzXF/kIRzcLTOlEZ/liJbq3tLQ5 rEGz57Ifypd60uibQ9j1FIbwRLbRT5fHvAHeKNyAkL3GIsrbz+BNdCS6vn6+BvClLlkd L04Q== X-Received: by 10.60.131.98 with SMTP id ol2mr3171146oeb.37.1366365411023; Fri, 19 Apr 2013 02:56:51 -0700 (PDT) MIME-Version: 1.0 From: Ombongi Moraa Fe Date: Fri, 19 Apr 2013 12:56:10 +0300 Subject: RE: subprocess.call To: python-list@python.org Content-Type: multipart/alternative; boundary=089e01183b7af525b404dab3bcf6 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366365414 news.xs4all.nl 2291 [2001:888:2000:d::a6]:47530 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43893 --089e01183b7af525b404dab3bcf6 Content-Type: text/plain; charset=ISO-8859-1 Hi Team, In my python script, I have this: command="lynx -dump 'phpscript?param1=%s¶m2=%s¶m3=%s¶m4=%s¶m5=%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 --089e01183b7af525b404dab3bcf6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Team,

In my python script, I h= ave this:

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

result=3Dsubprocess.call(command,shell= =3DTrue)
print 'xml message'

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

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

Saludos

Ombongi Moraa Faith

--089e01183b7af525b404dab3bcf6--