[Dxspider-support] The 'perfect' cron list

Mikel EA2CW ea2cw at gautxori.com
Thu Mar 2 19:04:02 GMT 2023


After Dirk's corrections, this is my /spider/local_cmd/crontab file. 
Hope it can help. Be careful with some undesired LF/CR

73, Mikel

SOF 
===================================================================================
# Check connections every 5 minutes to see if servers are connected
# if not, starts connect jobs
02,07,12,17,22,27,32,37,42,47,52,57 * * * * start_connect('ea3cv-2') 
unless connected('ea3cv-2')
# one line for each node you want to stay connected to
#
# Check connections with reversebeacon servers every minute
* * * * *   start_connect('sk0mmr') unless connected('sk0mmr')
* * * * *   start_connect('sk1mmr') unless connected('sk1mmr')
#
# Search for updates week days at 04:25 UTC
#
25 4 * * 1,2,3,4,5 run_cmd("check_build N")
#
#
# Check IP dynamic changes every 10 min
02,12,22,32,42,52 * * * * run_cmd("update_ip")
#
# Users export on tue & thu at 03:20
20 3 * * 2,4 run_cmd("export_users")
#
# Monday 3:00 local - Get latest FCC data (W1NR updates Sundays)
0 3 * * 1 spawn("cd /tmp && wget -Nq ftp://ftp.w1nr.net/usdbraw.gz && 
/spider/perl/create_usdb.pl usdbraw.gz")
2 3 * * 1 run_cmd("load/usdb")
4 3 * * 1 spawn("rm /tmp/usdbraw.gz")
#
# Friday 5:00 UTC - Get latest Keps to be ready for any contest
0 5 * * 5 spawn("cd /tmp && wget -Nq 
https://www.amsat.org/amsat/ftp/keps/current/nasabare.txt && 
/spider/perl/convkeps.pl -p nasabare.txt")
2 5 * * 5 run_cmd("load/keps")
4 5 * * 5 spawn("rm /tmp/nasabare.txt")
#
# Friday 4am UTC - Get latest cty.dat to be ready for any contest
6  4 * * 5 spawn("cd /spider/local_data && wget -Nq 
https://www.country-files.com/cty/cty.dat")
8  4 * * 5 spawn("cd /spider/local_data && wget -Nq 
https://www.country-files.com/cty/wpxloc.raw")
10 4 * * 5 spawn("cd /spider/local_data && /spider/perl/create_prefix.pl")
12 4 * * 5 run_cmd("load/prefixes")
#
# Announce to logged users every hour at minute 08
08 * * * * run_cmd('ann Remember to register if you want to send spots. 
Use SP EA2CW to do it')
#
# BADIP's, TOR & Others
17 * * * * spawn('cd /spider/local_data; wget -qN 
http://www.dxspider.net/download/badip.torexit')
17 * * * * spawn('cd /spider/local_data; wget -qN 
http://www.dxspider.net/download/badip.torrelay')
17 * * * * spawn('cd /spider/local_data; wget -qN 
http://www.dxspider.net/download/badip.global')
18 * * * * run_cmd('load/badip')
EOF 
=========================================================================



El 02/03/2023 a las 19:26, Michael Walker via Dxspider-support escribió:
> Hi All
>
> For years, my cluster runs flawlessly on its own.  :)  And, I trust that to
> continue.
>
> Can those in the know share what their CRON entries are so us mear mortals
> can update our own clusters?  :)
>
> This is what I have now (and, am now noticing the funny characters that
> require fixing)
>
>
> # Automaticlly check for update at 02:20 on Tuesday morning and then apply
> at 02:30
> # Note, this restarts the node so will disconnect all sessions
> 20 02 * * 2 spawn("cd /spider; git reset --hard; git pull")
> 30 02 * * 2 run_cmd('shutdown▒^`^y)
>
> # Check for updates on weekdays at 23:42.  Do not update at weekends.
> Update the updater first
> 40 23 * * 1,2,3,4,5 spawn('cd /spider/local_cmd; wget -qN
> https://raw.githubusercontent.com/EA3CV/dxspider_info/main/check_build.pl')
> 41 23 * * 1,2,3,4,5 run_cmd(▒^`^xload/cmd')
> 42 23 * * 1,2,3,4,5 run_cmd("check_build Y▒^`^})
>
>
>
>
> Mike va3mw
>
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at tobit.co.uk
> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support

-- 
ea2cw at gautxori.com
Bilbao, Bizkaia. IN83MG
http://radio.gautxori.com
http://qrz.com/db/ea2cw
https://t.me/EA2CW




More information about the Dxspider-support mailing list