You can configure sudo to not require a password for specific commands.
PS. However, if you do this for the script, make very sure that the script is only writable by root. A slightly better approach is just to use sudo for the specific commands where root is needed, not for the whole script.
Last edited by evo2; 01-07-2010 at 02:15 AM.