yeah i am using similar script but a simpler one using only few lines
http://www.besthostingforums.com/48-...sh-script.html