Created
June 11, 2015 08:35
-
-
Save tadasuke/406306d3acbb18bc7176 to your computer and use it in GitHub Desktop.
シェルスクリプトでsudoを実行する ref: http://qiita.com/tadasuke/items/fcf563bbce33aa93c4c7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "パスワード" | sudo -S /etc/rc.d/init.d/httpd restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hoge ALL=(ALL) /etc/rc.d/init.d/httpd,/etc/rc.d/init.d/mysqld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment