On Sun, Feb 21, 2010 at 1:09 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > On Sat, 20 Feb 2010 12:46:24 -0800 (PST), chad <cdal...@gmail.com> > declaimed the following in comp.lang.python: > >> Given the following.... >> >> #!/usr/bin/python >> >> import subprocess as s >> >> broadcast = s.Popen("echo test | wall", shell=True,stdout=s.PIPE) >> >> out = broadcast.stdout >> while 1: >> out > > Does nothing... "out" is a name bound to the object identified by > "broadcast.stdout"... > > It does nothing unless it is called as... > > out(somedata)
I'm pretty sure you meant: out.write(somedata) Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list