Originally Posted by padideh
please help me to write this scipt
Is there a particular file or config involved? Have you tried to at least attempt at writing your own script or learning shell scripting? There are great tutorials out there, learning this will make you fully understand how these things work and will benefit you in the long run.