Cron

D. Joe Anderson kclug at etrumeus.com
Thu Oct 28 10:32:58 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