[Dxspider-support] Implemantion an external "DX by" perl command ?
Dirk Koopman
djk at tobit.co.uk
Tue Jan 7 23:47:08 GMT 2014
On 07/01/14 21:49, Christian FURST wrote:
> Hello'
>
> First of all, I send you all my best wishes for a happy new year 2014.
>
> I am looking to implement a perl script that will directly from the
> Linux command line with parameters send a DX spot. I saw a example in
> 'perl/showdx', but as I did not properly mastering this scripting
> language, I spent time in vain to try adapt it...
> I need that the command accept the parameter BY.
>
There is a generic method for sending commands by linux shell scripting
(as opposed to connecting to the node via TCP):
First create the cmd_import directory:
mkdir /spider/cmd_import
Then drop in a file with your spot:
DX 14.005 WR3D is a jolly good fellow > /spider/cmd_import/g1tlh
Within about a second that will send a dx spot from G1TLH suggesting
that he heard WR3D and that he is also a jolly good fellow (which is
true [usually]).
You can run any command as any plain callsign, or the sysop alias
callsign by using some non-callsign name. If you want to use a
callsign, the filename merely has to contain the callsign, so
"g1tlh.001" or "g1tlh.txt" all work. The filename can be any mixture of
UPPER or lower case letters.
Actually, you can create whole scripts of commands and run them using
this method. Any commands that are valid in a startup script can be used
here.
When the script has been read, it is automatically removed.
Perhaps you could share with us the reason why you want to use such a
feature. This is a powerful system that could circumvent some
protections in the node itself and, if this (for instance) were to be
driven by a website, could be misused by others in ways which would
leave you with the blame.
Dirk
More information about the Dxspider-support
mailing list