I have a need for one of my bash scripts to log to syslog instead of it's own file. I've googled various ways and found very little to help me. Is there a down-and-dirty way to do this?
Mark Haney wrote:
I have a need for one of my bash scripts to log to syslog instead of it's own file. I've googled various ways and found very little to help me. Is there a down-and-dirty way to do this?
May I suggest subscribing to the "Everything Script" mailing list at shell.scripting@moongroup.com - you'll get great suggestions there.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Mark Haney wrote:
I have a need for one of my bash scripts to log to syslog instead of it's own file. I've googled various ways and found very little to help me. Is there a down-and-dirty way to do this?
logger(1) should do what you want:
logger - a shell command interface to the syslog(3) system log module
- -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ====================================================================== Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office.