Nice logging to /var/log/messages
Hints from Ralf
Script Header
dish the path from the scriptname
progname=$(basename $0)
log () { echo -e $* | logger -t $progname }
Use with:
plain text
log "Some important stuff"
running programs
log "$(killall vpnc)"
running programs which normally log to stderr
log "$(killall vpnc 2>&1)"