I am trying to execute a command like this from a Ruby on Rails app:
sudo service squid3 restart
If i try it with this code:
output = ′sudo service squid3 retsart′
It don't work, in the console i see that linux asks the password. How can i pass a password with this command? Or other suggestions...
See Question&Answers more detail:os