Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47495
| X-Received | by 10.67.1.8 with SMTP id bc8mr1552311pad.35.1370811101154; Sun, 09 Jun 2013 13:51:41 -0700 (PDT) |
|---|---|
| MIME-Version | 1.0 |
| X-Received | by 10.49.105.229 with SMTP id gp5mr273642qeb.35.1370811100739; Sun, 09 Jun 2013 13:51:40 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!c5no13239175pbj.1!news-out.google.com!b2ni3125pby.1!nntp.google.com!c5no13239173pbj.1!postnews.google.com!bz1g2000vbb.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Sun, 9 Jun 2013 13:51:40 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | bz1g2000vbb.googlegroups.com; posting-host=81.247.181.207; posting-account=-4q5ZAoAAABqYnHiWOUEwtub4CGC9qTi |
| NNTP-Posting-Host | 81.247.181.207 |
| References | <cd1be83a-f560-4024-90b3-697a51bb1bb0@g7g2000vbv.googlegroups.com> <mailman.2932.1370808058.3114.python-list@python.org> <2cb97d50-87b1-4173-a4d9-0cb4342bfd5f@g2g2000vbk.googlegroups.com> <mailman.2935.1370809789.3114.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-HTTP-UserAgent | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0,gzip(gfe) |
| Message-ID | <a31dbfb2-5563-4db2-a2ea-da8116bd1db2@bz1g2000vbb.googlegroups.com> (permalink) |
| Subject | Re: problem with if then |
| From | Jean Dubois <jeandubois314@gmail.com> |
| Injection-Date | Sun, 09 Jun 2013 20:51:41 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.lang.python:47495 |
Show key headers only | View raw
On 9 jun, 22:29, Fábio Santos <fabiosantos...@gmail.com> wrote: > On 9 Jun 2013 21:24, "Jean Dubois" > ...> And here is the result: > > > jean@antec4:~$ ./try.py > > wget -q -O - > > http://www.deredactie.be/cm/vrtnieuws/videozone/programmas/journaal/E...> >/dev/null ; echo $? > > 8 > > 2013-06-07 22:07:00.016807 stream is available > > wget -q -O - > > http://www.deredactie.be/cm/vrtnieuws/videozone/programmas/journaal/E...> >/dev/null ; echo $? > > 8 > > 2013-06-08 22:07:00.016795 stream is available > > wget -q -O - > > http://www.deredactie.be/cm/vrtnieuws/videozone/programmas/journaal/E... > > > >/dev/null ; echo $? > > 0 > > 2013-06-09 22:07:00.016763 stream is available > > You don't need to echo the return code. os.system should return that as an > int. > > The problem might be that os.system is returning the result from the echo > command instead. I removed the 'echo $?' and now the thing runs like expected, thanks a lot jean
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[newbie] problem with if then Jean Dubois <jeandubois314@gmail.com> - 2013-06-09 12:44 -0700
Re: [newbie] problem with if then Fábio Santos <fabiosantosart@gmail.com> - 2013-06-09 21:00 +0100
Re: problem with if then Jean Dubois <jeandubois314@gmail.com> - 2013-06-09 13:15 -0700
Re: problem with if then Fábio Santos <fabiosantosart@gmail.com> - 2013-06-09 21:29 +0100
Re: problem with if then Jean Dubois <jeandubois314@gmail.com> - 2013-06-09 13:51 -0700
Re: [newbie] problem with if then Roy Smith <roy@panix.com> - 2013-06-09 16:23 -0400
Re: problem with if then Jean Dubois <jeandubois314@gmail.com> - 2013-06-09 14:00 -0700
Re: problem with if then Roy Smith <roy@panix.com> - 2013-06-09 17:35 -0400
Re: problem with if then Jean Dubois <jeandubois314@gmail.com> - 2013-06-10 00:46 -0700
Re: [newbie] problem with if then Albert Dengg <albert@fsfe.org> - 2013-06-09 22:37 +0200
csiph-web