Initial import
This commit is contained in:
26
etc/example.cron
Normal file
26
etc/example.cron
Normal file
@@ -0,0 +1,26 @@
|
||||
NAME="mycron"
|
||||
AUTHOR="Pim van Pelt"
|
||||
MAILTO="pim@ipng.ch"
|
||||
ESCALATE_MAILTO="pim+escalate@ipng.ch"
|
||||
MASTERLOG="/var/log/bitcron/${NAME}.log"
|
||||
LINT='$Id$'
|
||||
|
||||
# You can test this thing with:
|
||||
# ./bitcron -n example.cron foo bar baz
|
||||
bitcron_main()
|
||||
{
|
||||
echo "Version: $LINT"
|
||||
if [ $# -ne 0 ]; then
|
||||
echo "Your commandline arguments were:"
|
||||
while [ $# -gt 0 ]; do echo $1; shift; done
|
||||
fi
|
||||
|
||||
warning "You beter watch it .."
|
||||
|
||||
error "Oops, now you blew it!"
|
||||
|
||||
fatal "I refuse to work with you any longer!!!"
|
||||
|
||||
// Not reached
|
||||
echo "Not reached, because of a fatal error"
|
||||
}
|
Reference in New Issue
Block a user