<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Feb 17, 2017 06:14, "Chris Green" <<a href="mailto:cl@isbd.net">cl@isbd.net</a>> wrote:<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No use, I want an *ordinary* cron job to identify itself.<br>
<br>
E.g. I have backup jobs running on one of my headless computers with<br>
cron entries like:-<br>
<br>
20 1 * * * rsync -a --exclude '*.pyc' /home/chris/ isbd.uk:.syncmisc/odin/<br>
<br>
When something goes wrong I want to be able to identify where the mail<br>
from cron came from.</blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Wrap that cron in a script. Have the script echo the identifier of your choice before it does anything else.</div><div dir="auto"><br></div><div dir="auto">echo "This cron is running on Fred, the RPI system providing DNS and DHCP. It lives under your couch."</div><div dir="auto"><br></div><div dir="auto">Or something similar.</div><div dir="auto"><div class="gmail_extra"><br></div></div></div>