From owner-freebsd-questions Wed Nov 11 23:53:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA09057 for freebsd-questions-outgoing; Wed, 11 Nov 1998 23:53:12 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.cityip.co.za (ns.cityip.co.za [196.25.223.140]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA09045 for ; Wed, 11 Nov 1998 23:53:06 -0800 (PST) (envelope-from wjv@cityip.co.za) Received: from wjv by ns.cityip.co.za with local (Exim 2.05 #1) id 0zdrYG-0003Nh-00; Thu, 12 Nov 1998 09:52:24 +0200 Message-ID: <19981112095223.D12940@cityip.co.za> Date: Thu, 12 Nov 1998 09:52:23 +0200 From: Johann Visagie To: efinley@efinley.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Q: logging to syslogd References: <364b79bb.4493761@mail.afnetinc.com> <19981111150439.A5424@cityip.co.za> <364a04bf.18583173@mail.afnetinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <364a04bf.18583173@mail.afnetinc.com>; from Elliot Finley on Wed, Nov 11, 1998 at 09:44:57PM +0000 X-PGP: ftp://ftp.cityip.co.za/users/wjv/pubkey.asc Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 11 Nov 1998 at 21:44 SAST, Elliot Finley wrote: > > This particular command (or program) runs continuously. I've tested > logger with commands that eventually terminate, and it works just > fine, but I can't get logger to log to syslogd from a program that > doesn't terminate... I've even tried different permutations like > 'command | xargs logger -t sometag' and it still will not log until > the command terminates. Then I don't have any immediate suggestions. Do you have access to the source of this program/command? What language is it written in? If it's in C, you can probably hack it to make use of the syslog(3) interface. In fact, most common Unix programming/scripting languages should have a convenient interface to syslog. -- V Johann Visagie | wjv@CityIP.co.za | Tel: +27 21 419-7878 | ICQ: 20645559 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message