From owner-freebsd-hackers Thu Apr 1 1:33:46 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from guard.polynet.lviv.ua (Guard.PolyNet.Lviv.UA [194.44.138.1]) by hub.freebsd.org (Postfix) with SMTP id BB0D714C11 for ; Thu, 1 Apr 1999 01:33:30 -0800 (PST) (envelope-from pam@postoffice.polynet.lviv.ua) Received: (qmail 18626 invoked from network); 1 Apr 1999 09:33:09 -0000 Received: from unknown (HELO postoffice.polynet.lviv.ua) (unknown) by unknown with SMTP; 1 Apr 1999 09:33:09 -0000 Received: (qmail 62561 invoked by uid 1001); 1 Apr 1999 09:33:08 -0000 Date: 1 Apr 1999 12:33:08 +0300 Date: Thu, 1 Apr 1999 12:33:08 +0300 (EEST) From: Adrian Pavlykevych X-Sender: pam@NetSurfer.lp.lviv.ua To: freebsd-hackers@freebsd.org Subject: [Q]: Piping from syslogd to program Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello everybody! Are there any special tricks to be done to have program which is run by syslogd and piping logs through it? I have pipe program which works perfectly while run in shell pipeline like: zcat /var/log/messages.0.gz | my-program >> result.log But it causes message "exec my-program >> result.log: Resource temporarily unavailable" to be logged by syslogd when run from syslog.conf: *.* | exec my-program >> result.log program is perl script in the form of: open(LOG, "/dev/stdin") open(OUT, "| another-program"); while() { print OUT "Some info"; print "Errors"; } Any suggestions would be appreciated. Regards, Adrian Pavlykevych email: System Administrator phone/fax: +380 (322) 742041 State University "Lvivska Polytechnica" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message