[aprssig] APRS / findu.com / PERL help needed
Curt, WE7U
archer at eskimo.com
Fri Nov 12 19:33:01 EST 2004
On Sat, 13 Nov 2004, Andrew Rich wrote:
> I am trying to get a history of raw data from findu.com.
>
> Here is my perl code
>
> #!/usr/bin/perl
> system ("wget
> 'http://www.findu.com/cgi-bin/raw.cgi?call=vk4tec-9&start=0&length=24&time=h
> our' > /var/www/html/vk4tec_stuff/aprs_history.txt");
>
> it produces some funnies.
>
> 8236 Nov 13 10:17 raw.cgi?call=vk4tec-9.1
> -rwxr-xr-x 1 root root 161 Nov 13 10:18 aprs_hostory.pl
> -rw-r--r-- 1 root root 0 Nov 13 10:18 aprs_history.txt
> -rw-r--r-- 1 root root 9916 Nov 13 10:18
> raw.cgi?call=vk4tec-9&start=0&length=24&time=hour
>
> Is there a better way to connect to an APRS datbase and get raw data ?
Xastir code (I can share this piece 'cuz I wrote it):
#ifdef HAVE_WGET
xastir_snprintf(tempfile, sizeof(tempfile),
"%s --server-response --timestamping --tries=1 --timeout=30 --output-document=%s \'%s\' 2> /dev/null\n",
WGET_PATH,
log_filename,
fileimg);
if (debug_level & 2)
fprintf(stderr,"%s",tempfile);
if ( system(tempfile) ) { // Go get the file
fprintf(stderr,"Couldn't download the trail\n");
return;
}
#else // HAVE_WGET
--
Curt, WE7U http://www.eskimo.com/~archer
"Lotto: A tax on people who are bad at math." -- unknown
"Windows: Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me: I picked the coordinate system!"
More information about the aprssig
mailing list