[Tutor] how to stop output to terminal
shawn bright
nephish at gmail.com
Sat May 12 05:54:45 CEST 2007
cool, thanks
sk
On 5/11/07, Luke Paireepinart <rabidpoobear at gmail.com> wrote:
>
> shawn bright wrote:
> > lo there all,
> >
> > i have a simple thread that i want to run without piping any output to
> > the terminal.
> > like if i do an
> >
> > x = os.system("ping -c 1 www.google.com <http://www.google.com>")
> >
> > i don't want it to show all the stuff in the terminal.
> if you use os.popen or the subprocess module you can execute system
> commands and have their output stored in file-like objects.
> then if you don't want any output, don't read from them.
> >
> > can i disable it for only certain lines?
> yeah, just read in all lines and display the ones which meet your
> criteria.
> >
> > thanks
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Tutor maillist - Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070511/af973245/attachment.html
More information about the Tutor
mailing list