pipe syslog to per script problem

Discussion in 'Perl Misc' started by Rocky, Jul 13, 2004.

  1. Rocky

    Rocky Guest

    hi all
    I have the fiollowing script called syslogwatch:
    #!/usr/bin/perl
    use strict;
    use warnings;
    while (<>)
    {
    do stuff here;
    }

    I pipe mail.* to it from syslog.conf but it keeps overwriting my script
    with mail.* entries
    syslog.conf (Suse 9.0) looks like
    mail.* |/var/perlmon/syslogwatch
    is the syslog not coming in as a stream? What can I do differently?
    thanks,
    Rocky
    Rocky, Jul 13, 2004
    #1
    1. Advertising

  2. Rocky

    Anno Siegel Guest

    Rocky <> wrote in comp.lang.perl.misc:
    > hi all
    > I have the fiollowing script called syslogwatch:
    > #!/usr/bin/perl
    > use strict;
    > use warnings;
    > while (<>)
    > {
    > do stuff here;
    > }
    >
    > I pipe mail.* to it from syslog.conf but it keeps overwriting my script
    > with mail.* entries
    > syslog.conf (Suse 9.0) looks like
    > mail.* |/var/perlmon/syslogwatch
    > is the syslog not coming in as a stream? What can I do differently?


    This is not a Perl problem. The logging script would be overwritten
    just the same if it were written in another language.

    Ask on a Unix group, preferably one that specializes on your kind of
    system. The interpretation of syslog.conf varies a bit with different
    kinds of Unix.

    Anno
    Anno Siegel, Jul 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?S01aX3N0YXRl?=

    Quick one - Is SESSION per browser instance or per IP Address?

    =?Utf-8?B?S01aX3N0YXRl?=, Apr 4, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    5,878
    gerry
    Apr 10, 2006
  2. Razvan
    Replies:
    1
    Views:
    412
    tony vee
    Sep 10, 2004
  3. Replies:
    2
    Views:
    6,055
    Chris Uppal
    Jun 20, 2006
  4. leroy isaac
    Replies:
    1
    Views:
    480
    James Willmore
    Oct 29, 2004
  5. Bad Dog
    Replies:
    0
    Views:
    234
    Bad Dog
    Aug 9, 2007
Loading...

Share This Page