View Single Post
  #4   (View Single Post)  
Old 3rd January 2011
JokerBoy JokerBoy is offline
Real Name: Bogdan
New User
 
Join Date: Dec 2010
Location: Romania
Posts: 6
Default

i use this script for zombie processes on freebsd and it works great:

Code:
#!/bin/sh
# */5 * * * *	/home/bogdan/.scripts/flashkill > /dev/null

flashcount=$(/bin/pgrep npviewer.bin | /usr/bin/wc -l)
if [ $flashcount = 1 ]; then
    /usr/bin/killall npviewer.bin
fi
Reply With Quote