[Dxspider-support] The 'perfect' cron list
Keith Maton
g6nhu at me.com
Thu Mar 2 21:43:23 GMT 2023
There’s a file called RBN.mojo in /spider which tells you about how the RBN connection works and how to configure it. It’s pretty straightforward but be aware, you’ll get a LOT of data!
73 Keith
> On 2 Mar 2023, at 21:39, f4bwt at free.fr wrote:
>
> Hi all,
>
> I see on many mesage this :
>
> # Check the skimmer connection every minute and reconnect if needed.
> * * * * * start_connect('sk0mmr') unless connected('sk0mmr')
> * * * * * start_connect('sk1mmr') unless connected('sk1mmr')
>
>
> Is it integrated into the software or do you have to request a connection to an OM or server?
> Because I can't find an answer to my question on the various DX-Spider sites.
> If you could help me understand what this means.
>
> Thanks for your answer and 73 51 QRO
> Laurent F4BWT
> Sysop of F4BWT-3 & F4BWT-7
>
> ----- Mail original -----
> De: "Keith Maton via Dxspider-support" <dxspider-support at tobit.co.uk>
> À: "The DXSpider Support list" <dxspider-support at tobit.co.uk>
> Cc: "Keith Maton" <g6nhu at me.com>
> Envoyé: Jeudi 2 Mars 2023 21:04:33
> Objet: Re: [Dxspider-support] The 'perfect' cron list
>
>
> Probably not ‘perfect’ but this works for me.
>
>
>
>
> # Set so that all crontab entries are performed in LOCAL time, not UTC
>
> LOCALE = LOCAL
>
> #
>
> # Remote node links
>
> xxx removed because we all have different ones
>
>
>
>
> # Check the skimmer connection every minute and reconnect if needed.
>
> * * * * * start_connect('sk0mmr') unless connected('sk0mmr')
>
> * * * * * start_connect('sk1mmr') unless connected('sk1mmr')
>
>
>
>
> # Update mrtg every five minutes
>
> 00,05,10,15,20,25,30,35,40,45,50,55 * * * * run_cmd('mrtg all')
>
>
>
>
> # Update the badip tables every hour
>
> 38 * * * * spawn('cd /spider/local_data; wget -qN http://www.dxspider.net/download/badip.torexit')
>
> 38 * * * * spawn('cd /spider/local_data; wget -qN http://www.dxspider.net/download/badip.torrelay')
>
> 38 * * * * spawn('cd /spider/local_data; wget -qN http://www.dxspider.net/download/badip.global')
>
> 39 * * * * run_cmd('load/badip')
>
>
>
>
> # Daily at 04:00 - Automatically tidy up old log files.
>
> # debug log management is controlled via spider and via a line in startup.
>
> 02 4 * * * spawn(q[find /spider/local_data/spots -type f -mmin +44640 -exec rm -f {} \;])
>
> 01 4 * * * spawn(q[find /spider/local_data/log -type f -mmin +10080 -exec rm -f {} \;])
>
> 03 4 * * * spawn(q[find /spider/local_data/wcy -type f -mmin +1440 -exec rm -f {} \;])
>
> 04 4 * * * spawn(q[find /spider/local_data/wwv -type f -mmin +1440 -exec rm -f {} \;])
>
>
>
>
> # Daily at 05:00 - Get latest cty.dat
>
> 00 05 * * * spawn("cd /spider/local_data ; rm cty.old ; mv cty.dat cty.old ; wget -qN http://www.country-files.com/cty/cty.dat")
>
> 02 05 * * * spawn("cd /spider/local_data ; rm wpxloc.old ; mv wpxloc.raw wpxloc.old ; wget -qN http://www.country-files.com/cty/wpxloc.raw")
>
> 04 05 * * * spawn("cd /spider/local_data ; /spider/perl/create_prefix.pl")
>
> 10 05 * * * run_cmd("load/prefixes")
>
>
>
>
> # Daily at 08:00 - Get latest Keps (I doubt anyone uses these but it's good to be up to date)
>
> 02 08 * * * spawn("cd /tmp ; wget -qN http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt ; /spider/perl/convkeps.pl -p nasabare.txt")
>
> 04 08 * * * run_cmd("load/keps")
>
> 06 08 * * * spawn("rm /tmp/nasabare.txt")
>
>
>
>
> # 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('load/cmd')
>
> 42 23 * * 1,2,3,4,5 run_cmd("check_build Y")
>
>
>
>
> # Monday 23:10 - Get latest FCC data
>
> 10 23 * * 1 spawn("cd /tmp ; wget -qN ftp://ftp.w1nr.net/usdbraw.gz ; /spider/perl/create_usdb.pl usdbraw.gz")
>
> 15 23 * * 1 run_cmd("load/usdb")
>
> 20 23 * * 1 spawn("rm /tmp/usdbraw.gz")
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On 2 Mar 2023, at 19:04, Mikel EA2CW via Dxspider-support <dxspider-support at tobit.co.uk> wrote:
>
>
> 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
>
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at tobit.co.uk
> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at tobit.co.uk
> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
More information about the Dxspider-support
mailing list