in reply to Executing unix command from script

You can configure sudo to not ask for a password. See the NOPASSWD option in man sudoers.