<div dir="ltr">Good conversation... very helpful.<div><br></div><div>Dirk - what you're saying (first point) is that this command would be in a crontab in the context of the sysop.  That's the way it is on my system.  Then (second point) is that we can add this "MAILTO" line here to help us connect two events - the email... and the reset/crash.</div><div><br></div><div>From there... we can know what the cause was.  Is that what is being recommended?</div><div><br></div><div>I'm wondering if there's a way to add a "Subject" to that email so that - if there are more than one spawn command in the crontab - the sysop could have the ability to know which spawn event is associated with which email.</div><div><br></div><div>Mike, WA9PIE</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 8:40 AM, djk <span dir="ltr"><<a href="mailto:djk@tobit.co.uk" target="_blank">djk@tobit.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 15/02/16 23:53, Michael Carper, Ph.D. wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Would this item in my cronjob cause the DX Spider application to restart?<br>
<br>
# AutoUpdate DXSpider Server<br>
0 1 * * * spawn("cd /spider; git reset --hard; git pull")<br>
<br>
<br>
</blockquote>
<br></span>
Ah, I have had sporadic reports of the spawn() command in crontab causing crashes. So far, I have not been able to reproduce it. It *may* be a perl problem [maybe: when called as I do it]. You would be much better to put that command in a real crontab for the sysop user. This would sidestep any error caused by me/perl.<br>
<br>
* Login as the sysop user<br>
* crontab -e<br>
<an editor window will appear><br>
<enter the following><br>
MAILTO="<<a href="mailto:someone@somewhere.com" target="_blank">someone@somewhere.com</a>>"<br>
0 1 * * * cd /spider; git reset --hard; git pull<br>
<save and exit><br>
* crontab -l<br>
<shows you what you have just entered><br>
<br>
Cron will send you an email every time this command is done. When you are happy that this is working, then you can switch that off by doing another crontab -e and changing:<br>
<br>
MAILTO=""<br>
<br>
Hope that helps<div class="HOEnZb"><div class="h5"><br>
<br>
Dirk G1TLH<br>
<br>
_______________________________________________<br>
Dxspider-support mailing list<br>
<a href="mailto:Dxspider-support@dxcluster.org" target="_blank">Dxspider-support@dxcluster.org</a><br>
<a href="http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support" rel="noreferrer" target="_blank">http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a><br>
</div></div></blockquote></div><br></div>