Re: Redirecting stdin/stdout to self

2006-01-23 Thread Dan M
>>> 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 handl

Re: Redirecting stdin/stdout to self

2006-01-23 Thread Grant Edwards
On 2006-01-23, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2006-01-23, Jan Danielsson <[EMAIL PROTECTED]> 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, th

Re: Redirecting stdin/stdout to self

2006-01-23 Thread Grant Edwards
On 2006-01-23, Jan Danielsson <[EMAIL PROTECTED]> 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 d

Redirecting stdin/stdout to self

2006-01-23 Thread Jan Danielsson
Hello, I thought I'd write a program to collect information from pf (packet filter) and insert it into a postgresql database for review on a web page. First I checked if this has been done already, and found that it has.. Using Perl and SQLite in a program called "hatchet". Well, I want to do i