Steve,
The 'file not found' went away. But did not display anything. Commented out the first two lines (console) and reran.
Does this work from the command line for you:
nslookup myip.opendns.com resolver1.opendns.com
It should give you a couple of lines of information about what your public IP address is. On windows, we get 4 lines and a blank line. What's the output look like for Linux?
Second question: Do you have wget installed? Even if it doesn't find your IP, you should still be able to get sun data for Lat/Long 0, 0.
Make one quick change and test it for me. In the Download routine, change:
OUT$ = "wget " + CHR$(34) + link$ + " -O " + file$ + CHR$(34)
To:
OUT$ = "wget " + CHR$(34) + link$ + CHR$(34) + " -O "+ CHR$(34) + file$ + CHR$(34)
As long as you have wget on your machine, I'm thinking the problem is probably something simple which we might be able to save with quotes in the proper place to deliminate our fields.
Heck, you might even try:
OUT$ = "wget " + link$ + " -O " + file$
I'm not on a Linux system, so I can't readily test things for them, but I imagine the glitch here is really something rather simple. It's not that hard to shell out of wget and have it download a webpage to a file for you. At least, not usually. :P