Files
bitcron/etc/example.cron
Pim van Pelt e3264e6489 Initial import
2025-07-13 23:39:04 +02:00

27 lines
571 B
Plaintext

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"
}