Find Jobs
Hire Freelancers

146674 Shell Script Needed

N/A

In Progress
Posted almost 17 years ago

N/A

Paid on delivery
Goal is to identify user files which have not been accessed in X-day, and send notification to users using mailx. Also if user haven't access files in X-days those files will be archives and removed. Below are more details: Looking for someone to write a shell script (.sh, .ksh) that will run on Solaris OS as a cron job. Below are the requirements: Script will read input file called: users.txt. Here is the sample file: username1 [login to view URL] username2 [login to view URL] username3 [login to view URL] Basically this script need to identify "*.txt", "*.logs" files in users home directory which have not been accessed by a user in 10-days (-atime). So working folder will be /export/home1 /export/home2 which will contain all user directories. Example find command could be: find /export/home1 /export/home2 -atime +10 -name "*.txt" -o -name "*.logs" So basically I want the script to find the file in user home directories which haven't been accessed in the past 10 days, and send the users an email notification using mailx. Same script will also look for similar files which have not been accessed for 15-days and these files will be moved to an archive directory and stored as a compress file ex: [login to view URL] or .Z Archive functionality should have the option to be turn on and off and used on need bases only. Meaning I should have the option to run this script just for email notification purpose. Sendmail is configured on this server. I am open for suggestions. Let me know if additional info is needed. I need this script done fast. So hopefully someone out there already has a similar script written.
Project ID: 1892852

About the project

Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
Alpharetta, United States
5.0
53
Payment method verified
Member since Aug 7, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.