script to purge log files
Please find the follwoing task need to create two sepearet scripts for the following 2 cases.
Currently there is no cleaning of logs or flat files.
Logs need to be cleaned when they are older than x months.
After y months the archive folder for flat files needs to be cleaned.
The number of months (x and y) needs to be known when the technical design starts.
The error folder never has to be cleaned as it is assumed it will be cleaned manually after having fixed the problem.
A script (purge_logs.sh and purge_flat_files.sh) will be delivered taking care of this cleaning. This script will have to be scheduled in the appropriate way.