Linux/Apache Kill Process Script

We require a script to be written, that can kill an apache request based on the filename that it is accessing, and based on it's connection status in Apache.

I will explain it in terms of how WHM shows it to me, and then you will have to simply cross reference the numbers and send a kill -9 command. I am a developer myself, but know absolutely nothing about Perl or Linux :)

Through WHM, you can view the "Current CPU Usage", Which I believe could be a print out of the TOP Command, but I am not sure. This shows the PID, The Username, Mem Status, CPU Stats, and the command they are running. The command if it is an apache request usually looks something along the lines of this

/usr/bin/php /home/username/public_html/[url removed, login to view]

The script will need to find basically every command that is currently running, that has a substring of whatever I tell it. Let's say I want to run the script to kill all instances of apache, that is accessing the script "[url removed, login to view]", then it will need to take something like

/usr/bin/php /home/username/public_html/folder/[url removed, login to view]

And be able to recognize the substring within that. From there, it needs to grab the PID.

If possible, I would then like to cross reference that with the Apache Status grab out. In WHM we have the Apache Status page which tells me all current running Apache processes. Inside here it gives me a couple more pieces of information, and that is the status of the connection (Whether it is running, Closed, Gracefully closing etc). It also tells me how long the process has been running for.

So in short :

Find an apache process by the file it is accessing, check it's apache status, and how long it has been running, if it meets my criteria (As in it has been running for over 2 minutes), then send a kill - 9 command and kill the request.

If you have any questions I am more than happy to answer them :)

P.S. Don't be afraid to bid because you think someone will undercut you. I want good work, not the most hurried code ever :)

Beceriler: Apache, Linux, Perl

Daha fazlasını gör: kill apache process linux, apache kill process, kill apache process, apache kill script, script kill apache, kill perl process whm, kill apache perl, perl script kill apache, linux kill apache process, linux apache kill, kill php script linux, apache linux kill script, linux kill apache php script, kill process apache, script kill apache process, kill running php process apache linux, linux apache process, substring in c, substring find, substring c

İşveren Hakkında:
( 1 değerlendirme ) Auckland, New Zealand

Proje NO: #760865



Please see PM.

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(77 Değerlendirme)

Bu iş için 18 freelancer ortalamada $59 teklif veriyor


Please check PM

in %bids___i_period_sub_35% gün içinde300%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(5 Değerlendirme)
in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(41 Değerlendirme)

Please see PM

in %bids___i_period_sub_35% gün içinde55%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(47 Değerlendirme)

Hi, see PMB for clarification.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(32 Değerlendirme)

Hello, check PM please.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(20 Değerlendirme)
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(22 Değerlendirme)

Sir, I believe I can resolve this issue for you. Please see your PM for full details.

in %bids___i_period_sub_35% gün içinde75%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)

Greetings! We, at V I Services, have been delivering Remote IT infrastructure Management (RIM) Services successfully to clients across the globe. Our experienced Windows and Linux Support team members with the su Daha Fazla

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(7 Değerlendirme)

Please see PM

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(8 Değerlendirme)

I can provide you the script immediately. Please check PMB. Thank you.

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

I have just completed a similar project. Please check PMB

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

may I help?

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)

I did that before and I can provide you with same day solution. Have almost 18 year experience and most of it with Unix.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

I can do via Perl. I am ready for this project. I hope write little demo script and develop with you.

in %bids___i_period_sub_35% gün içinde35%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

Hi, I'm very very interested this project and have question for you. Pls check your inbox. Thanks!

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

Hello, I have over 3+ years of experience developing on a Linux server with PHP, Ruby, and Apache. I've done a few Ruby scripts that keep checking the status of a process running on a Linux server. You won't need to Daha Fazla

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

I can do this for you, at very high quality. If you don't like it, you don't have to pay me. That's how sure I am.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

I've worked with Unix and scripting for years (most jobs I've had since 1988) and I'd enjoy working on this you you.

in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)