Devam Ediyor

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ün: 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, substring 0 2, p.c. connection, inside view, how to find a good developer, how to find a file in linux

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

Proje NO: #760865

Seçilen:

osmanbsd

Please see PM.

1 gün içinde 40$ USD
(77 Değerlendirme)
6.8

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

edsiper

Please check PM

in 5 gün içinde300$ USD
(5 Değerlendirme)
6.5
in 0 gün içinde30$ USD
(41 Değerlendirme)
6.4
gasparch

Please see PM

in 0 gün içinde55$ USD
(47 Değerlendirme)
5.6
tuxadmin

Hi, see PMB for clarification.

1 gün içinde 50$ USD
(32 Değerlendirme)
5.5
iosifpeterfi

Hello, check PM please.

1 gün içinde 30$ USD
(20 Değerlendirme)
5.6
1 gün içinde 45$ USD
(22 Değerlendirme)
5.0
digitaloffensive

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

in 5 gün içinde75$ USD
(2 Değerlendirme)
4.4
VIServices

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 fazlası

in 3 gün içinde100$ USD
(7 Değerlendirme)
3.5
nekosp

Please see PM

1 gün içinde 40$ USD
(8 Değerlendirme)
3.2
muthusuba

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

in 0 gün içinde30$ USD
(1 Değerlendirme)
3.0
MariusAI

I have just completed a similar project. Please check PMB

in 2 gün içinde50$ USD
(1 Değerlendirme)
2.5
lsdumbrella

may I help?

1 gün içinde 30$ USD
(1 Değerlendirme)
2.0
shiva3791

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 70$ USD
(0 Değerlendirme)
0.0
Ryon

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

in 2 gün içinde35$ USD
(1 Değerlendirme)
0.0
MakeYouBelieve

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

1 gün içinde 30$ USD
(0 Değerlendirme)
0.0
dataextract

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 fazlası

in 2 gün içinde50$ USD
(0 Değerlendirme)
0.0
noglider

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 100$ USD
(0 Değerlendirme)
0.0
johnsdba

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 3 gün içinde200$ USD
(0 Değerlendirme)
0.0