The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-20-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
In ftp try 'ls -l' to see if the host returns date information first.
If it does try this -
Code:
echo "
open myhost
username password
cd /somewhere
ls -l
bye
" | ftp -n > listfile
Next grep for the date you want in list file, then create another here document to ftp over to the host and get the files you want. mget does not do filetimes on the remote host.