Hi there!

During last WPX DX Contest i decided to work from our contest station at the country abt 30km from my temporary QTH. I thought it would be nice if i could check what's going on the DX-Cluster being 'on the run' :-) So i wrote this simple script...
#!/usr/bin/perl use strict; use Net::Telnet (); my $my_call = 'my_call'; my $my_pass = 'password_goes_here'; my $dxc_call = 'sr4dxc'; my $t = Net::Telnet->new(Host => 'sr4dxc.ampr.pl', Port => '9000', Timeout => 10); $t->waitfor('/callsign:/'); $t->print($my_call); $t->waitfor('/Password:/'); $t->print($my_pass); $t->waitfor('/clx >/'); my @lines = $t->cmd(String => "@ARGV", Prompt => "/$my_call de $dxc_ca +ll/"); print @lines; $t->print("bye"); $t->close;
This short code allows me to execute all of the DX-Cluster commands passed as @ARGV.
At first i wrote a procmail rule to pass all the SMS messages sent from my phone number to my e-mail address to the other script, that allows me to execute arbitary commands on my Linux box (i know - it's unsecure, except special message format required and some other issues), which executes this script and passes all the arguments.
This way working as a contest station or DX-pedition (case with no PR and no internet connection) i have an access to the current DX information. The result printed to STDOUT by this script is collected by the first one and sent back to my phone via e-mail-->SMS gateway.

Note: tested and working 100% with (no adverts here) in Poland, but will work with any other GSM provider :-)

Vy 73 de SQ3TQM/6!
Greetz, Tom.

In reply to HAM-Radio DX-Cluster via SMS message by tmiklas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.