How do you include the root password, say for shutting down an ubuntu machine?
like,
sudo shutdown now
is it possible to include the password on this 1 line? like an extra parameter?
reason for this is I am trying to play with this app named azr remote prompt which lets you send commands from your blackberry to your ubuntu machine and it seems like a 1 way trip. you send commands, but you don't get any response from the computer.
Yes, sudo has a '-S' a switch that allows it to read in the sudo password from stdin. All you have to do is echo your root password - so for your instance it would look like this (replace [PASSWORD] with your root password)