<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Right, I’ve spent two days with this and I’m now pulling out what little hair I have left.<div><br></div><div>I’ve built a new cluster and I’m trying to get (to start with), my FCC database updated via crontab.</div><div><br></div><div>I’ve added sysop into the SUDO group.</div><div><br></div><div>I’m running a Raspberry Pi with DXSpider v1.57 (build 451).</div><div><br></div><div>I’m logged onto the Pi as sysop, then I’ve done a sudo su because otherwise I can’t write to /spider/local_cmd</div><div><br></div><div>My crontab file is thus:</div><div><br></div><div><br></div><div><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures"># Check every 10 minutes to see if xxxx is connected and if not</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures"># start a connect job</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;">0,10,20,30,40,50 * * * * start_connect('pi4cc') unless connected('pi4cc')<span style="font-variant-ligatures: no-common-ligatures"></span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures"># Monday 01:00 - Get latest FCC data (W1NR updates Sundays)</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">16 16 * * 1 spawn("cd /tmp && wget -qN ftp://ftp.w1nr.net/usdbraw.gz && /spider/perl/create_usdb.pl usdbraw.gz")</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">20 16 * * 1 run_cmd("load/usdb")</p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">25 16 * * 1 spawn("rm /tmp/usdbraw.gz")</span></p></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">The connect lines are fine, that works perfectly.</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">The first line of getting the FCC data partly works.  cd /tmp works and so does the wget command.  However, the final part doesn’t work.  It never creates /spider/local_data/usdb.v1</span></div><div><span style="font-variant-ligatures: no-common-ligatures">The third line works, it deletes the downloaded file.</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">However, if I run cd /tmp && wget -qN ftp://ftp.w1nr.net/usdbraw.gz && /spider/perl/create_usdb.pl usdbraw.gz from the prompt, it works (although the file it creates has the wrong owner).</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div>To me, this looks like a permissions/ownership thing but I’ve tried so many things today and yesterday that I’ve kinda lost the will to live.</div><div><br></div><div>These are the permissions on my crontab file in /spider/local_cmd</div><div><br></div><div><span style="font-family: Menlo; font-size: 11px;">-rwxr-xr-x 1 root spider 2020 Dec  </span><span style="font-family: Menlo; font-size: 11px;">5 12:16 crontab</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">I also have stuff in crontab to update keps and cty.dat which don’t work either but I reckon that if I can get this one working, the others will work as well.</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures: no-common-ligatures">I’m quite sure this is going to be something simple but I’ve stared at it for so long now that I need to refer to Dirk’s list of pre-reqs for the mojo upgrade, ie a</span> supply of good, strong tea - preferably in pint mugs. A tin hat, stout boots, a rucksack with survival rations and a decent miners' lamp might also prove comforting.</div><div><br></div><div>Please, can someone point me in the right direction.</div><div><br></div><div>Thanks,</div><div><br></div><div>73 Keith G6NHU</div><div><br></div></body></html>