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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp: mput only newer files

Status
Not open for further replies.

josebravo

Programmer
Jun 29, 2001
7
DE
Hallo, I want to make a mput via ftp but if there is a newer version of the file in the receiver already I do not want to transmit the file and I will start with the transmission of the next file. Can anybody help me? Thanks in advance. Jose.
 
This is only my view, but I don't think ftp is that smart. I've never seen it done anyway :-(

Greg.
 
I thought that maybe with the command newer and one script we could approach to the final solution. The problem is that I want to do it for multiple files and I need the file name for the newer command.
 
What is the newer command? I've never heard of it!

Greg.
 
newer file-name
Get the file only if the modification time of the remote file is
more recent that the file on the current system. If the file
does not exist on the current system, the remote file is
considered newer. Otherwise, this command is identical to get.


The problem is that I do not know how to make a script to capture the name of the file, and then make a loop for all files in the directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top