Thanks funsen,
I am confused as to how it fits together.
I can see running the cron job and writing standard error to a temp file on the cron job.
2> /tmp/file
What I don't understand when not to fire the awk script if there is an error.
var=$(wc -l /tmp/file)
if [ $var -gt 0 ] then cat /tmp/file | mail -s "copy job error"
your@e.mail; rm
/tmp/file; fi
Thanks again for replying