How can I log message via syslog ?

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Mar 18 01:26:59 PST 2004


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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040318/09f4584b/attachment.bin


More information about the freebsd-questions mailing list