in reply to execute shell command
Better than hardcoding a password in the source is to make it so you're not prompted to begin with. If you're trying to run something like ssh or rsh, setup an SSH identity or .rhosts file. If you're trying to run a command as a different user, use sudo and configure it so that the script can be run as the specific target user by the running user without a password.
|
|---|