Monday, March 1, 2010

FTP GET remote file timestamp

Check the remote server file time
login to ftp server
ftp servername
do
ls -ltr

will show list of files say we have
ftp> ls -ltr

227 Entering Passive Mode (10,146,172,50,66,132)
150 Here comes the directory listing.
-rw-r--r-- 1 50005 50005 5250 Mar 01 08:15 tech-talk
226 Directory send OK.


use modtime filename to check the file modified timestamp, ftp always shows in GMT time

ftp> modtime tech-talk

tech-talk 03/01/2010 08:15:00 GMT

No comments:

Post a Comment