Redirecting stdin/stdout to self
Grant Edwards
grante at visi.com
Mon Jan 23 14:32:29 EST 2006
On 2006-01-23, Jan Danielsson <jan.danielsson at gmail.com> wrote:
> And if I'm reading it correctly, the Perl
> script's process starts tcpdump, but redirects its output to its own
> input, and reads it line by line.
[...]
> ...however, the Perl script solution looks interresting.. Is it
> possible to do something like that in Python?
os.popen()
http://www.python.org/doc/current/lib/os-process.html
--
Grant Edwards grante Yow! Yow! I threw up on
at my window!
visi.com
More information about the Python-list
mailing list