Script to check file update on ftp server

Hi everybody,

Is there a way to do a stat of files on a ftp server? I have a database which is populated by the contents of these files. I want to setup a crontab to check if there has been an update to these files. If the file has been updated I will download it and then update my database.

I want to know of a way to compare my local files with the files on the server. I don't want to download them and then check since they are quite big.

Thanks in advance,

Dave

-------------------------

Update: wget -N <URL>
seems to do the job.

Check out the Perl FTP module. Look for mdtm() method.

Cheers mate!

I had originally written a Perl script using the Net::FTP module, but used the size() method. The mdtm() method makes much more sense.