Cron
kclug at etrumeus.com
kclug at etrumeus.com
Wed Oct 27 11:34:17 CDT 2004
On Wed, Oct 27, 2004 at 10:09:27AM -0500, Brian Densmore wrote:
>
> How would I add logging to the script?
With the "logger" command, executed as a part of the script, eg:
#!/bin/bsh
logger "I'm starting to do stuff!"
/usr/bin/do some stuff
/usr/bin/do some other stuff
logger "I'm done doing stuff!"
The lines "I'm starting to do stuff!" and "I'm done doing
stuff!" would show up in your logs, syslog I think but depends
on the specifics of your configuration.
--
Joe
More information about the Kclug
mailing list