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

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to