Looking for someone to write a shell script (.sh, .ksh) that will run on Solaris OS as a cron job. Below are the requirements:
We have bunch of log files in two folders owned by different users:
Folder Names: /A and /B
The files in these folders are owned by different users. File format is:
[url removed, login to view]
So basically I want the script to look for *.logs in folder /A and /B which haven't been modified in the past 30 days, make a note of that file and notify the owner of the file via email that this file will be deleted within 2-weeks.
When the cron job runs again after 2-weeks, the script will archived these files in a folder (Compress .Z) and deleted the original files.
Sendmail is configured on this server.
I am open for suggestions. Let me know if additional info is needed.