🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Darth Maul Sat, 18 Sep 2004 15:06
Why filter_innd.pl don't write to syslog
#69911
Author: Darth Maul
Date: Sat, 18 Sep 2004 15:06
10 lines
1633 bytes
This is fragment of filter_innd.pl, sub filter_art:
sub filter_art {
    openlog("filter_innd", "pid", "news");
    syslog("notice", "testnax");
    closelog();

This code don't write to news.notice, then anybody post any article.
But if this code run apart as independed proccess from user "news", it will write to news.notice.
Why ? How to write to syslog from filter_innd.pl ?
Re: Why filter_innd.pl don't write to syslog
#69913
Author: Russ Allbery
Date: Sat, 18 Sep 2004 18:55
22 lines
1934 bytes
Darth Maul <zinin@comtv.ru> writes:

> This is fragment of filter_innd.pl, sub filter_art:
> sub filter_art {
>     openlog("filter_innd", "pid", "news");
>     syslog("notice", "testnax");
>     closelog();

> This code don't write to news.notice, then anybody post any article.
> But if this code run apart as independed proccess from user "news", it
> will write to news.notice.  Why ? How to write to syslog from
> filter_innd.pl ?

I'm not entirely sure why this doesn't work, but in general you want to
just call INN::syslog() rather than using Sys::Syslog in an embedded
filter.  innd already has syslog open, after all.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads