Date: Thu, 18 Mar 2004 09:26:47 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Supote Leelasupphakorn <pjn0211@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: How can I log message via syslog ? Message-ID: <20040318092647.GC10030@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040318092135.1852.qmail@web40602.mail.yahoo.com> References: <20040318092135.1852.qmail@web40602.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--raC6veAxrt5nqIoY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 18, 2004 at 09:21:35AM +0000, Supote Leelasupphakorn wrote: > Sorry for my Englist. I have a shell script let say > script.sh and I would like to log logging message for > that script by using syslog. What're step accomplish this > this and how syslog look like ? See logger(1) -- lets you submit messages to the system log from within shell scripts. Eg: logger -p local3.debug -i -t myscript "Your log message here" Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --raC6veAxrt5nqIoY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAWWtXdtESqEQa7a0RAg3jAJ9XhxuHLa+wU2+NE7ARKuSLvoKKZwCfViwr 4c3CssTR+697WMk8EdGRRDU= =QXNW -----END PGP SIGNATURE----- --raC6veAxrt5nqIoY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040318092647.GC10030>