[Dxspider-support] Downloads

CX2SA - Jose Ma Gonzalez cx2sa at cx2sa.net
Sat Mar 11 23:51:57 GMT 2023


Updated and work very good the download command!

DXSpider v1.57 (build 517 git: mojo/54775ee[r]) using perl v5.32.1 on MSWin32

 

badw_regex file doesn't work in this version either.

Thank you, 73 Jose

 

 

 

De: Dxspider-support [mailto:dxspider-support-bounces at tobit.co.uk] En nombre de Dirk Koopman via Dxspider-support
Enviado el: sábado, 11 de marzo de 2023 20:06
Para: Dirk Koopman via Dxspider-support
CC: Dirk Koopman
Asunto: Re: [Dxspider-support] Downloads

 

I should add: the 'download' is non-blocking. As you can see in the example below they run in parallel:

11Mar2023 at 20:24:00 (cron) cron: UTC 24 20 11 3 6 -> doing 'run_cmd('download http://www.dxspider.net/download/badip.torexit')'
11Mar2023 at 20:24:00 (cron) DXCron::run_cmd: download http://www.dxspider.net/download/badip.torexit
11Mar2023 at 20:24:00 (*) download: url http://www.dxspider.net/download/badip.torexit
11Mar2023 at 20:24:00 (progress) CMD: 'download http://www.dxspider.net/download/badip.torexit' by GB7TLH ip: 127.0.0.1 2mS
11Mar2023 at 20:24:00 (cron) cron: UTC 24 20 11 3 6 -> doing 'run_cmd('download http://www.dxspider.net/download/badip.torrelay')'
11Mar2023 at 20:24:00 (cron) DXCron::run_cmd: download http://www.dxspider.net/download/badip.torrelay
11Mar2023 at 20:24:00 (*) download: url http://www.dxspider.net/download/badip.torrelay
11Mar2023 at 20:24:00 (progress) CMD: 'download http://www.dxspider.net/download/badip.torrelay' by GB7TLH ip: 127.0.0.1 1mS
11Mar2023 at 20:24:00 (cron) cron: UTC 24 20 11 3 6 -> doing 'run_cmd('download http://www.dxspider.net/download/badip.global')'
11Mar2023 at 20:24:00 (cron) DXCron::run_cmd: download http://www.dxspider.net/download/badip.global
11Mar2023 at 20:24:00 (*) download: url http://www.dxspider.net/download/badip.global
11Mar2023 at 20:24:00 (progress) CMD: 'download http://www.dxspider.net/download/badip.global' by GB7TLH ip: 127.0.0.1 1mS
11Mar2023 at 20:24:00 (progress) download: /spider/local_data/badip.global successfully downloaded
11Mar2023 at 20:24:00 (progress) download: /spider/local_data/badip.torexit successfully downloaded
11Mar2023 at 20:24:00 (progress) download: /spider/local_data/badip.torrelay successfully downloaded

Given that sysops are successfully running the mojo branch on Windows (apart from spawning commands), I believe this will work identically there as well.

On 11/03/2023 22:54, Dirk Koopman via Dxspider-support wrote:

I have just pushed new DXSpider command 'download', it is a bit experimental, but I have been using it successfully in a few places. There may be additional facilities added to it based on demand. Here is what the Changes file says (can't be bothered to type it all out again):

1. I am aware that there are windows nodes out there on mojo (brave, impetuous 
   that you are) and wget is not an easy option to download badip files. So, 
   through the power of mojo I give you the new 'download' command. As it 
   stands at the moment, it will download a file from a webserver and place
   it in /spider/local_data. If it downloads successfully, it will overwrite
   any file with that name in /spider/local_data. Needless to say this is a 
   sysop only command. 

24 * * * * run_cmd('download http://www.dxspider.net/download/badip.torexit')
24 * * * * run_cmd('download http://www.dxspider.net/download/badip.torrelay')
24 * * * * run_cmd('download http://www.dxspider.net/download/badip.global')
25 * * * * run_cmd('load/badip')

   would be an obvious use. But it can also be used to download spot, USDB 
   and other data as well. If you do use it then you will still need to 
   do a spawn_cmd in crontab for the conversion programs, but that too is 
   going to change.

You don't need to restart, everything it does is in the command. 

Enjoy

Dirk G1TLH




_______________________________________________
Dxspider-support mailing list
Dxspider-support at tobit.co.uk
https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20230311/3e194d32/attachment-0001.htm>


More information about the Dxspider-support mailing list