Create a Bash script in my server to execute a set of commands

Hi, I have a php script which is coded very poorly, so occasionally that script is causing infinite loops in the process there by increasing WaitQ in my litespeed server. And it is not possible to detect just which process is causing that, So i usually kill all process running under that user to bring back the WaitQ.

I am using the litespeed web server which maintain the live report in a file which i gave in the attachment, hdwrock1 is the user and corresponding waitQ is mentioned with WAITQUE_DEPTH (Which is 0 now)

All you need is to create a bash script to detect if the WaitQ is more than 0 (Zero) of that user hdwrock1, then script has to kill all process of that particular user. And run that script every minute using cron.

Skills: Linux, MySQL, PHP, Shell Script, Software Architecture

See more: bash script example, shell script to login to multiple servers and execute commands, how to run shell script from one server to another server, ssh execute remote command with password, how to connect to another server in unix shell script, shell script to connect to remote server with password, bash script to ssh into server and run command, python script to login to multiple servers and execute commands, create logon script server 2003 sets background, bash script set proxy, script create subdomain virtual server, execute script server curl, bash script check server status, create printer script server 2003, unix set bash script, create oracle script sql server, bash script restarts server, create oracle script sql server script, bash script test mysql server running, set login script server 2003

About the Employer:
( 1 review ) Hyderabad, India

Project ID: #18685058

Awarded to:


Hi I ve done many cron jobs in Linux based OS. And I guess it's easy kill process from an user. So I guess I could help you. Regards

$30 USD in 1 day
(69 Reviews)

11 freelancers are bidding on average $32 for this job


Hi, I can write the script, but would like to know from where is this wait queue parameter read. Is that a specific file for lightspeed. Can we identify that particular user as well from that file.? Thanks

$25 USD in 1 day
(26 Reviews)

Hey there, I'm a System Engineer with coding skills. I have been working with Linux/Unix systems for years. I had developed tons of Bash scripts. Regards.

$30 USD in 1 day
(36 Reviews)

Hi, I have a very good experience with linux. I can do this task for you. Below is my action plan for this task. 1) Find out the the WAIT_QUEUE tag and get the value from text file. 2) Find owner of the WAIT_QUE More

$25 USD in 1 day
(2 Reviews)

Hi, under WaitQ you mean iowait for each process(that make queue) of user hdwrock1 right? If so i know how to do it and I will fulfill this task with pleasure for you.

$35 USD in 1 day
(1 Review)

Hi I am Kamal Mehta. I have 12 Years of experience in Shell Scripting. Please consider my request and contact me to discuss your requirements. This bid is the placeholder and it may increase or decrease after careful More

$55 USD in 1 day
(2 Reviews)

I am good in Bash script, php, perl along with devops engineering, please let me know if you are good to award this project to me

$29 USD in 1 day
(1 Review)

Hii I have developed & delivered Web database applications for enterprises & companies, using open source language PHP, MySQL, HTML 5, CSS3, AJAX, JSON, XML, etc. Coding, project and team management is my passion. My e More

$50 USD in 3 days
(0 Reviews)

Hi, I have 14 years of experience in Linux and Bash scripting. The joib described in the post look like an easy one for me. I can help you to build & install the bash script which kill the processes if waitqueue is More

$24 USD in 1 day
(0 Reviews)

I am currently working as an Devops engineer. As part of my current role i need to write many scripts to automate. So this project must be very simple with the experience i have in scripting.

$10 USD in 1 day
(0 Reviews)

Hello I'm technical manager in a hosting company which I can do your project and its possible for suggest and provide you good offers for get best performance at now and next requests on futures. I'll do it this proj More

$35 USD in 1 day
(0 Reviews)