<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Keith,</p>
<p>Try doing this:<br>
<br>
su - sysop -c "cd /home/sysop"<br>
su - sysop -c "chown -R sysop.spider spider"<br>
su - sysop -c "find ./ -type d -exec chmod 2775 {} \;"<br>
su - sysop -c "find ./ -type f -exec chmod 775 {} \;"<br>
<br>
I don't have '&&' I use ';'. Look at my crontab:<br>
<br>
<br>
# AutoUpdate USDB<br>
0 1 * * 1,3,5 spawn("cd /tmp; wget -qN
<a class="moz-txt-link-freetext" href="ftp://ftp.w1nr.net/usdbraw.gz">ftp://ftp.w1nr.net/usdbraw.gz</a>; /spider/perl/create_usdb.pl
usdbraw.gz")<br>
5 1 * * 1,3,5 run_cmd("load/usdb")<br>
10 1 * * 1,3,5 spawn("rm /tmp/usdbraw.gz")<br>
<br>
# AutoUpdate CTY.DAT<br>
0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN
<a class="moz-txt-link-freetext" href="http://www.country-files.com/cty/cty.dat">http://www.country-files.com/cty/cty.dat</a>")<br>
0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN
<a class="moz-txt-link-freetext" href="http://www.country-files.com/cty/wpxloc.raw">http://www.country-files.com/cty/wpxloc.raw</a>")<br>
2 3 * * 0,2,5 spawn("/spider/perl/create_prefix.pl")<br>
3 3 * * 0,2,5 run_cmd("load/prefix")<br>
<br>
# AutoUpdate Keps<br>
0 2 * * 2,4,6 spawn("cd /tmp; wget -qN
<a class="moz-txt-link-freetext" href="http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt">http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt</a>;
/spider/perl/convkeps.pl -p nasabare.txt")<br>
5 2 * * 2,4,6 run_cmd("load/keps")<br>
10 2 * * 2,4,6 spawn("rm /tmp/nasabare.txt")<br>
<br>
Kin EA3CV</p>
<p><br>
</p>
<div class="moz-cite-prefix">El 05/12/2022 a las 20:44, Keith Maton
via Dxspider-support escribió:<br>
</div>
<blockquote type="cite"
cite="mid:022D9714-5B82-43D1-B9FB-95F8C1A61464@me.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
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
<a class="moz-txt-link-freetext" href="ftp://ftp.w1nr.net/usdbraw.gz">ftp://ftp.w1nr.net/usdbraw.gz</a> &&
/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
<a class="moz-txt-link-freetext" href="ftp://ftp.w1nr.net/usdbraw.gz">ftp://ftp.w1nr.net/usdbraw.gz</a> &&
/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>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Dxspider-support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dxspider-support@tobit.co.uk">Dxspider-support@tobit.co.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support">https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support</a>
</pre>
</blockquote>
</body>
</html>