Hi Folks,
I'm using some perl script running on a local server that uploads files to a remote server every 10 minutes. Everything has been running fine for months (and did so for a few months last year, similar script). But recently I've seen an odd problem; the only text file that's being uploaded ends up as a bunch of jibberish (this is just a sample, it ends up being several dozen lines of the same):
Quote:
|
IHDR&= IDATx{xSUo.I:0E,J[>U&u2*(Tf&%U
|
First suspect is a recent upgrade that my ISP did, and some problem from their side is still not ruled out. But then I noticed that I had been setting the ftp mode to binary, so switched to ascii (default). Thought that did the trick, but then later noticed it doing it again. It won't do it all the time, just sporatically.
Here's the perl script used to upload the files:
Quote:
sleep(25);
use Net::FTP;
$ftp = Net::FTP->new("www.peacefulbend.com", Debug => 0)
or die "Cannot connect to some.host.name: $@";
$ftp->login("user",'password')
or die "Cannot login ", $ftp->message;
$ftp->cwd(" ")
or die "Cannot change working directory ", $ftp->message;
#$ftp->binary();
$ftp->put( "c:/digi/temptable.txt" , "peacefulbend.com/temperatures/temptable.txt")
or die "get failed ", $ftp->message;
$ftp->quit;
|
I added the delay to see if it might be a time conflict with the other uploads (two more which ARE binary, about 15 kb each, with similar time delays added)
Here's the page that it's being displayed, via SSI:
http://peacefulbend.com/temperatures/temperatures.shtml
Any ideas? Anybody?
tia