#!/bin/bash echo "This is writing to the log file" logger "This is writing with no priority specified" logger -p cron.crit "This goes to the cron log file" TARGET=" unix machines " TIMES=10 logger -p local0.error "This goes to the $TARGET $1 times."