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