Find Jobs
Hire Freelancers

Bash scrip to kill if PID is using 100% cpu

$10 USD

Closed
Posted almost 8 years ago

$10 USD

Paid on delivery
I have a server and there i run lot of ffmpeg (ff1) scripts, but sometimes any of scripts is getting lot of cpu and it block all my server, so when i run TOP command sometimes i see a proccess is ussing example 250% cpu So what i want is a simple script which i can run or maybe run with crontab every minute so it will check if any proccess is getting more than 100% cpu and if yes kill it
Project ID: 10905244

About the project

35 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
35 freelancers are bidding on average $20 USD for this job
User Avatar
A proposal has not yet been provided
$30 USD in 1 day
4.8 (157 reviews)
6.0
6.0
User Avatar
Hi, I am Hieu and I am an AWS Certified Associate and a VMware Certified Professional. I have 8 years of experience in systems admin and datacenter day-to-day operations. I am proficient to implement, configure and manage Windows, Unix, Linux with application servers running inside them like Apache, Ngix or databases systems like MySQL, PostgreSQL on both physical and virtualization as well as cloud computing. I would like to have the opportunity to discuss your project.
$35 USD in 0 day
5.0 (19 reviews)
4.9
4.9
User Avatar
will be done in 5 min let me know if you are interested
$111 USD in 1 day
5.0 (4 reviews)
3.8
3.8
User Avatar
Hello, I'm a senior Linux administator. I have ever worked with bash and cron before. I can finish this project. Thank you for reading my bid
$15 USD in 1 day
5.0 (9 reviews)
3.2
3.2
User Avatar
Hello. I work in 24/7 linux servers support. I can help you with this task. Best regards, Eugene D.
$10 USD in 1 day
5.0 (10 reviews)
3.2
3.2
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
4.8 (9 reviews)
2.9
2.9
User Avatar
I can help you with it
$13 USD in 1 day
5.0 (3 reviews)
2.3
2.3
User Avatar
I have 4+ years of experience working with ffmpeg and bash. I have recently worked on similar project where the requirement was similar except the need was just to monitor and not to kill the PID. I am sure i can help you complete your required task
$25 USD in 1 day
5.0 (1 review)
1.8
1.8
User Avatar
I have the code in C++. If you want I can share the code.
$25 USD in 1 day
5.0 (1 review)
1.4
1.4
User Avatar
Dear Sir, My name is Eduard and i work as Linux System Administrator from 10 years. I will be happy to solve this project for you. If this project is urgent then just accept my bid and i will start working on it. Best regards, Eduard
$35 USD in 1 day
5.0 (1 review)
1.1
1.1
User Avatar
I am a student at Automatica si Calculatoare, Bucharest. I studied linux in my first year and i graduated with highest grade. I am excited for yout answer !
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am well versed in Bash scripting and will provide a solution in a stipulated time period. I have several years of experience working in the Linux environment.
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am very good at righting python as well as bash script. I have a 5+ years experience in GNU/Linux environment using C and Python in Embedded Development
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Working on shell codes on daily basis well aware of process threads and kernel, will write most efficient script for you.
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have good experience of creating bash scripts. I offer you to make it even better for your requirements. I can create script which will do the following 1. Will run every 5 minutes through crontab and will check for PIDs close or above to n% CPU usage thrashold. 2. if the condition is true, It will not kill them but will schedule to run again after 1 minute(will repeate 3 times) and if CPU usage still close or above threshold it will kill the processes - Some processes sometimes consume cpu usage for a while and will free it after some time so no point of killing them immediately. 3. Properly log the killed processes so that you can check which processes have been killed and when. I can also create simple script to just kill those PIDs if you don't want above and can provide you in single day but for better one i will take my time of 7 days(as i am engaged with other projects also)
$30 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello This is really very easy to do. Please take a look on my profile. You will see similar projects i did. Everybody was happy with my work and gave me 5 stars and nice comment.
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
It's not difficult to implement
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi i have very good linux scripting skill .Paid me after verifying script.
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have almost two years of experience working at a web hosting company where I've assisted customers in many server admin task and know how to write Bash scripts and set up Cron jobs. I can create a script that will scan the output of the ps command for processes using 100% CPU and kill those processes by the specific PID. I can also set up the Cron for you if you like.
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of MACEDONIA
mycity, Macedonia
5.0
129
Payment method verified
Member since May 3, 2013

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.