snip ------------ copy the following to ~/.fldigi/scripts/ualr-telnet.pl
#!/usr/bin/perl
# Author: Stelios Bounanos, M0GLD
# Date: 20080623
use strict;
use warnings;
die "Usage: $0 CALLSIGN\n" unless (@ARGV == 1);
use Net::Telnet ();
sub error { print "\$NAME?\$QTH?\n"; exit(1); }
my $t = new Net::Telnet( Host => "callsign.ualr.edu", Port => 2000, Timeout => 10,
errmode => \&error );
$t->open();
$t->waitfor('/LOOKUP>.*$/');
$t->print($ARGV[0]);
$_ = $t->getline(); # blank line
$_ = $t->getline(); # call
error() if (m/No match found/);
$_ = $t->getline(); # name
chomp; s/.+,\s+//; s/\s.+$//;
print "\$NAME$_";
$_ = $t->getline(); # addr
$_ = $t->getline(); # qth
chomp;
$_ =~ ",";
$_ = $`;
print "\$QTH$_\n";
$t->waitfor('/LOOKUP>.*$/');
$t->print("bye");
snip------------------------------------------------