> from a Linux SLES9X using "ftp client" and i.e. " mget *.txt " > all files from remote site are downloaded and replaced (with today date) > if already present too. > My scope is to download only the newer or not present on local site > ans skip when they already exist.
The FTP specs don't provide this kind of function on an interoperable basis. You'll have to do this in three steps: 1) get the list of files that exist on the remote site. 2) find the differences 3) retrieve the updated files If you use ncftp as the Linux client, you can script the session fairly easily. Step 1 is to connect, authenticate, and get a list of the files on the remote system via DIR (note that you'll have to deal with all the variations in listing format; FTP doesn't normalize this) Step 2, get the listing of the current files and run diff to get the changes. Step 3, parse the diff, and create a list of files to get, then feed that list to ncftp. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390