[Ubuntu] Simple way to pass passwords on a shell script
生活随笔
收集整理的這篇文章主要介紹了
[Ubuntu] Simple way to pass passwords on a shell script
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
here is the code for example:?
?
#!/bin/bashecho?-e?"your_password\nyour_password"?|?sudo?/home/davidhhuan/the_shell_you_want_to_run.sh
轉載于:https://www.cnblogs.com/davidhhuan/archive/2012/11/12/2765983.html
總結
以上是生活随笔為你收集整理的[Ubuntu] Simple way to pass passwords on a shell script的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 霍兰德SI型如何选专业?霍兰德职业兴趣测
- 下一篇: eclipse中设置svn的commit