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. $1,
> ARGV[#], STDIN, while (<>) (which apparently works on linux, I haven't
> tried myself), and then some.
> 
>       Anybody ever try this?
> 
>       Thanks,
> 
>       Scott

IIRC you might need to put

  $| = 1;

at the beginning of the Perl script, so that STDIN is automatically
flushed.

-Chris

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to