Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get file time from FTP without getting the file 1

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I'd like to write a perl script that would run evey hour (I'm thinking of just having the Windows Task Manager crank up the perl script each hour).

The perl script needs to go to an ftp site (this part isn't a problem) and check a particular file's date and time and write that out (append) to a text file (this last part is also not a problem).

My ftp site only has ONE file in the directory I am ftp'ing into and the filename is constant. The file gets updated everyday and I am trying to find out WHEN it actually changes (when a new one is uploaded by a third party) so I can then decide to get this massive file.

Any ideas?
thanks in advance
 
I just do a ls through the FTP and manipulate the data till I get the date/time stamp.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Thanks travs69!

The array being returned is exactly what I needed.
Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top