Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Deleting old files using ftp script
Name: Charles Date: November 25, 2002 at 10:38:46 Pacific OS: AIX Version 4.3 CPU/Ram: RS6000
Comment:
I need a ftp script to delete old text files on a remote server based on the file retention rules such as 2 weeks, 1 month, etc.
Summary: I need a script for the following criteria. I need to delete files older than the date I am passing in the arguments. E.g: Here are the file names in the directory fname20021030.bak fname20021029.bak ...
Summary: Ohh, the script should be run from cron at the interval in minutes you are looking for old files. i.e. if you want to remove files that are older that 30 minutes old, run the script every 30 minutes....