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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.