From owner-freebsd-questions Tue Nov 19 13:39:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E56637B401 for ; Tue, 19 Nov 2002 13:39:45 -0800 (PST) Received: from squid.tznet.com (squid.tznet.com [66.170.64.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F0C443E97 for ; Tue, 19 Nov 2002 13:39:44 -0800 (PST) (envelope-from tech@tznet.com) Received: from mail.tznet.com (mail.tznet.com [66.170.64.2]) by squid.tznet.com (8.12.3/8.12.5) with ESMTP id gAJLdOek015820 for ; Tue, 19 Nov 2002 15:39:24 -0600 (CST) Date: Tue, 19 Nov 2002 15:39:24 -0600 (CST) From: Scott Pilz To: freebsd-questions@freebsd.org Subject: Syslog Piping Message-ID: <20021119153526.M30438-100000@mail.tznet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII T-NetSMTP: Virus Check - Found to be clean Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message