Syslog Piping

2002-11-19 Thread Scott Pilz
In syslog, if you have: *.* | /pipe.pl The output should be piped to pipe.pl - how, in perl, would you go about capturing this output? I have tried everything I could think of. $1, ARGV[#], STDIN, while (<>) (which apparently works on linux, I haven't tried myself), a

Re: Syslog Piping

2002-11-19 Thread Chris Pressey
On Tue, 19 Nov 2002 15:39:24 -0600 (CST) Scott Pilz <[EMAIL PROTECTED]> wrote: > > In syslog, if you have: > > *.* | /pipe.pl > > The output should be piped to pipe.pl - how, in perl, would you go about > capturing this output? I have tried everything I could think of. $

Re: Syslog Piping

2002-11-19 Thread paul beard
Scott Pilz wrote: In syslog, if you have: *.* | /pipe.pl The output should be piped to pipe.pl - how, in perl, would you go about capturing this output? I have tried everything I could think of. $1, ARGV[#], STDIN, while (<>) while (<>) { code } should work. It's not a linuxism. here's

Re: Syslog Piping

2002-11-19 Thread Scott Pilz
Tried that - but found the problem. Picky picky picky :)... needed a "./pipe.pl".. I should have known better. Guess I got used to /bins. Thanks. On Tue, 19 Nov 2002, paul beard wrote: > Scott Pilz wrote: > > > In syslog, if you have: > > > > *.* | /pipe.pl