Redirecting stdin/stdout to self

Dan M dan at wolf.com
Mon Jan 23 19:16:27 EST 2006


>>> 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.

And to clarify, what the Perl script is doing is redirecting the standard
error to standard out. STDIN is file handle 0, STDOUT is file handle 1,
and STDERR is file handle 2.




More information about the Python-list mailing list