Find Jobs
Hire Freelancers

Write a simple bash shell script to run on centos 7.1 to delete files once a size-threshold is reached

₹600-1500 INR

Closed
Posted over 8 years ago

₹600-1500 INR

Paid on delivery
Write a simple bash shell script to run on centos 7.1 to delete files once a size-threshold is reached. This is quite simple. We have a Centos 7.1 server. One of the directories gets filled up a few times a day. We believe it is a problem created by one of our applications. However, until we can solve the basic problem, we are looking for a short-cut solution. We need a script that we can run on our server a. on the command prompt. By the way , the script can have root access. b. schedule it as a cron to run periodically. The script should 1. check the size of the drive. 2. If the size if above 85% of its capacity, then it should simple delete all files in a particular folder in that drive (lets called it the TARGERFOLDER) of the following the filetypes: a. Files with extension of .MAD b. Files with extession of .MAI You can hard-code the following: 1. TARGETFOLDER 2. TARGETSIZEPERCENT You may have these as variables in the beginning of the script so that we can go in modify them as and when necessary.
Project ID: 8820142

About the project

31 proposals
Remote project
Active 8 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
31 freelancers are bidding on average ₹1,456 INR for this job
User Avatar
Hello, I can do that About me: Linux System Administrator and RHEL Certified Engineer, Security Specialist, Offensive Security Certified Professional. Skills: 1. Administrating Linux Based Servers 2. Penetration Testing with Kali Linux 3. Securing and configuring Webservers and Databases 4. Nginx, Apache and Varnish set-up and optimization 5. Installing Server and Client side software/Add-ons 6. Bash (Unix Shell) Coder
₹1,750 INR in 1 day
4.8 (69 reviews)
5.9
5.9
User Avatar
Hello, I can solve your problem. Please, look at my profile. There are a few examples of my code. If you have any questions, please ask.
₹1,750 INR in 1 day
5.0 (33 reviews)
5.1
5.1
User Avatar
A proposal has not yet been provided
₹1,750 INR in 1 day
4.9 (31 reviews)
5.1
5.1
User Avatar
Nie złożono jeszcze oferty.
₹1,800 INR in 3 days
5.0 (50 reviews)
4.9
4.9
User Avatar
Hi, I have many years experience with linux, I can do this script for you in bash. Project can be completed in a couple of hours
₹1,300 INR in 1 day
4.9 (18 reviews)
3.9
3.9
User Avatar
My script will be made in bash and use *only* POSIX commands, so it will be portable on *ALL* Linux boxes.
₹1,300 INR in 1 day
5.0 (14 reviews)
4.0
4.0
User Avatar
Hello. I work in 24/7 linux servers support. I can help you with this task. Best regards, Eugene D.
₹650 INR in 1 day
5.0 (10 reviews)
3.0
3.0
User Avatar
Hi! I am an experienced sysadmin with strong skills in bash scripting and I am eager to help you. Please send me a message so we can solve your problem. Thank you.
₹1,000 INR in 1 day
5.0 (2 reviews)
2.4
2.4
User Avatar
Hello , i have good experience on writing shells and python script and i believe that i can help you this task. Please let me know your interest. Thanks Mukesh
₹1,000 INR in 1 day
3.6 (4 reviews)
2.9
2.9
User Avatar
My team includes experienced sysadmins & developers who manage Cloud infrastructure(on AWS, Google Cloud, Rackspace) for various clients across globe for last 9 years. Other programming skills like ROR, Python, AngularJS, PHP. etc and automation tools used like Jenkins, chef etc. and Databases handled like Mysql, Postgresql, mongodb etc. I have understood the requirement. Please share the further details and will get started immediately. Feel free to contact me for further discussion.
₹5,555 INR in 1 day
5.0 (4 reviews)
2.2
2.2
User Avatar
I can do this very quickly. All the variables will be on the top of the script, so you can change any time you want. Edited: Already done the script, just choose me and i will send you the script.
₹1,250 INR in 1 day
5.0 (1 review)
0.6
0.6
User Avatar
I have developed several shell scripts in our company it's very simple to write such script in CentOS or any other Linux distribution.
₹1,100 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
₹1,300 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
₹1,300 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Good morning, I'm new to this site and I hope to get a chance to show you how good I'm at what I'm doing. I'm working as System Administrator (with Linux and Windows on daily basis). I'm really enjoying to write script in bash that automate daily tasks. I can write your script in just 1 day, with nice comments and variables at begin so that you can easy modify threshold (size limit) and folder (folders?) and type of files (I can also set variable for multiples types that can be easy modify) Best regards
₹1,250 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello. Is there any special characters in filenames? And how many files is in this directory? cca ...
₹650 INR in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
i am bash script writer,i have many script like this for my custom cache server solution. scheduled base working and files will removed which are not accessed from last 30 days or as you want.
₹1,250 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Tue Nov 3 07:40:09 IST 2015 Need device and partition name. Presume raid array not in use If mounting on different folders , script has to ensure not removing from wrong folder/device
₹1,300 INR in 1 day
0.0 (0 reviews)
0.8
0.8
User Avatar
Have worked extensively on UNIX and for large org like yahoo and was handling data for them . Will be able to deliver on time and with input variables so you can use it for other projects or directories if req .
₹800 INR in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
₹1,300 INR in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
India
0.0
0
Payment method verified
Member since Nov 2, 2015

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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.