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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to