We have a mplayer process which sometimes hangs for several hours or days until killed. We would like to create a cron job that runs every hour to kill these stucked mplayer process if they have been running for more than X number of hours.
A sample stucked mplayer process is:
root@debian:~# ps -o etime,pid,stime,time,cmd -C mplayer
ELAPSED PID STIME TIME CMD
7-13:38:20 30306 Jul29 7-12:47:28 mplayer /storage/cgi-bin/uploads/00450/nnyb38w2tdqj -identify -frames 0 -quiet -ao null -vo null
This project is to create the script that will be run via cron job. It will check to see if there are any mplayer process stucked for more than X number of hours and kill if so.
Budget is about $40
38 freelancers are bidding on average $42 for this job
Hi. I worked hosting company 4 years. Have experience in the administration of servers Linux, FreeBSD, Cisco etc. I am create scripts on sh, bash partially on perl. Many times did similar jobs.