[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: script that logs to syslog



-----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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQFDBAEBAgAtBQJE+FRgJhhodHRwOi8vd3d3LnBvYm94LmNvbS9+dG16L3BncC90
bXouYXNjAAoJEEMlk4u+rwzjibAIAJ093qtN6TkkanhEYx3dMI952JCZ9TQlyD+m
JNx1S0IsBW3im6zEvjv2geLktmm7jvS2/IOA671wGgCbZL9l9S6YYH6cMqLoIzku
yckeJL5o4/igaUfCzEHeyraLeGJpa1IADCqozdbdUCprPjGu3ObHk1IdeNykvV/x
fgK1N9wnapBeTvYxtWJ3xLxhvPCOa89gnyxen/6Az/7gtURdxUZ75stE4xqhpSZU
yNqN5ZnNvVHPMfdlqKrCLsXEod4k57g7CpUmdocBm3mSjCV6gYymPoddQmIzTVrk
uCs6Gyp1Qp3igEeguzS39I1+bhYwi8Jo9HoSHT0hvL+1dqnekmE=
=qMWe
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]