FTP Help...setting up script to autodownload a new file

Souka

Diamond Member
Sep 25, 2000
4,728
1
76
So here's the deal... I need to get a file off a specific FTP site, using set credientals, the trick being the file name changes, so I only want to download the newest file.

What I'm downloading is Virus definitions for deployment, but they change the file name with each release....so my best option would be to only pull the newest file.

I wrote a script that works, but it can only grab all the files using a "mget" command....problem is each package is 10-14mb, and the FTP site takes 10min to pull each file......and there can be upto 20 files in the directory...yuk!

Any suggestions welcome, or a FTP program that works (doesn't have to be free, I will buy if it works).


Thx,
Souka



 

Cheetah8799

Diamond Member
Apr 12, 2001
4,508
0
76
I've done what you are trying to do, here is what I found.

There is an old perl app called "mirror" that runs on a Linux box. You set it up to mirror a FTP site down to your own server. It keeps track of what files have been updated and everything. It is old though, and documentation is scarce. Try googling for it.

Or if you are a programmer you could come up with a PHP or Perl script of your own to pull down the file listing and parse out the newest files to get. I've done this too, but it can be tricky because Windows based ftp servers output file info differently than Unix/Linux based ftp servers.
 

Souka

Diamond Member
Sep 25, 2000
4,728
1
76
We're %100 MS shop, except for our As/400 mainframes.

Order of the comapny.... no Linux of any form....test network or otherwise...... Heck, I loaded a linux build into a VMware machine....got my *ss chewed out for doing so.

Blows I know, but its a good paycheck.
 

Souka

Diamond Member
Sep 25, 2000
4,728
1
76
MS Only.

Server 2000 ok if currently in use.

All systems must be XP Pro, 2003, 2003 adv svr for new and upgraded to if possible.


Very diversse company...trying to keep it simple...ugh...
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Teleport Pro may be able to do the same for FTP sites as it does for HTML sites.
I believe that it can mirror a directory for specific files that have changed.
 

Souka

Diamond Member
Sep 25, 2000
4,728
1
76
That Teleport Pro is pretty neat, but couldnt' get it to work quite right.

Problem is I'm pulling from an FTP site, not a HTTP site. Teleport Pro hangs at trying to pull the index.htlml file....which doesn't exist on a FTP site. :(


I looked at a bunch of options, but couldn't find the right option/settting.