Provide Password using to the application using the shell script

view story

http://www.unix.com – Hello, I have a requirement to shut down and start up my application on different environments (Dev, QA and Prod). I have around 24 servers. I have to login to each server manually for shutinng down the application. I wrote a shell command on each server and I am invoking those shell scripts from one server and shutting down. Here is the issue now. I have problem in shutting down few servers using shell scripts because they need password before it shutdown. I am executing the shell scripts with root access. Is there any way that I can issue the password in the Shell itself (HowTos)