ftp itslef is not file date aware so what you are going to have to is an ls of the files on the ftp server, log that to a file on your local machine filter for the dates of interest, pull out the file names and the get those files.
The .netrc file in the local user's home directory can be configured with the username and password, the following web page: http://rcsg-gsir.imsb-dsgi.nrc-cnrc....et/node52.html
covers providing the commands to the ftp command using here text.
if i connected to the ftp i can do "ls -R" and become the complete dirlist of ftp-server ... this i can save i a local file but ... how i filter the crap
---------- Post updated 25-01-10 at 04:53 AM ---------- Previous update was 24-01-10 at 04:51 PM ----------
thanks for reply
i found a interesting blogpost.
now i can mount the ftp-server-DIR and "find" only the newest files:
now i have saved all ftp-files in a variable ($LISTING)
the only thing i do not know ... how i can list only the
newest files ... of the last XX (eg 14) days. don't know
the parameter for "find" ... can any help?
Hi All,
I am new to the scripting and using solaris 10 OS. Please suggest me from the below script which modifications need to be done to delete the files more that 2days older. Current script is deleting existing file.
# Remove old explorer runs if needed
DIR=`dirname ${EXP_TARGET}`
if ... (2 Replies)
Hi All,
OS :- HP-UX wm5qa B.11.23 U ia64 1119805695 unlimited-user license
I need to search files older than 50 days. I've used following command in order to search desired files, I also discoverd, it's showing today's files as well. Do you have any clue with this ?
wmqa1> find .... (4 Replies)
Hello,
I have a script which finds files in a directory that are older than 30 days and remove them.
The problem is that these files are too many and when i run this command:
find * -mtime +30 | xargs rm
I run this command inside the directory and it returns the error:
/usr/bin/find:... (8 Replies)
Hi Frnds,
I have to list the files which are older than 7 days in the given directory.
it should consider only the files and should not show subdirectories.
Thanks,
Raja (3 Replies)
What command arguments I can use in unix to list files older than 10 days in my current directory, but I don't want to list the hidden files.
find . -type f -mtime +15 -print will work but, it is listing all the hidden files., which I don't want. (4 Replies)
Hi all,
I want to delete log files with extension .log which are older than 30
days. How to delete those files?
Operating system -- Sun solaris 10
Your input is highly appreciated.
Thanks in advance.
Regards,
Williams (2 Replies)
Hi everyone :)
I have a little question here, at my work, we have a system running Solaris 10 - with an attached EMC SAN, the SAN is running out of space, and we are moveing the data to a new EVA SAN.
The problem here is, that there are over 35.000.000 files on the system, and constantly 30... (4 Replies)