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