Käynnissä

Bash Script: Kill Process by Time

I need a crontab that run every 2 hours or less that kill httpd process by specific time, detail:

1. get a list of all httpd process that is start 2 hours ago and no running but remain in process list... (make the time a variable so i can change it later)

2. after get the list, delete each process..

note - search process condition:

a. more than 2 hours

b. currently no running

c. is a httpd process

Taidot: Linux

Näytä lisää: kill process time, bash kill process time, bash script kill process, bash kill time, bash kill process, script kill process time, kill time process, kill process bash, kill process bash crontab, bash script kill process time, bash kill script, bash kill, process time kill, kill bash time, script kill httpd process, bash script process start time, kill process time script, script bash kill process condition, bash script kill specific process, bash script kill httpd, script bash kill time, bash process time, bash kill httpd, bash kill crontab, httpd process kill script

Tietoa työnantajasta:
( 1 arvostelu ) no need, United States

Projektin tunnus: #445943

Myönnetty käyttäjälle:

nknk

Hi. That's my specialty. Please check PM.

60 $ USD 3 päivässä
(165 arvostelua)
7.0

8 freelancers are bidding on average $74 for this job

meral

see [url removed, login to view] to start

40 $ USD 1 päivässä
(97 arvostelua)
7.5
taro

Can write script

200 $ USD 2 päivässä
(2 arvostelua)
4.0
govind99

i can do this

60 $ USD 0 päivässä
(4 arvostelua)
3.5
meetanshu

Trivial task for a knwoledgeable person. Not bidding low to attract your attention. Seriously an easy task. Would do it in 2-3 hours of accepting. -Regards Meetanshu

33 $ USD 0 päivässä
(2 arvostelua)
2.5
phpfixer

See PM - sounds like you need config tweaking instead

60 $ USD 1 päivässä
(0 arvostelua)
0.0
VastCastle

Hi, I Really Need 110US$ For This. Be Tested On Fedora/RedHat Thanks

110 $ USD 1 päivässä
(0 arvostelua)
0.0
INSTANTCODER

i can wrote this shell script

30 $ USD 2 päivässä
(0 arvostelua)
0.0