阅读背景:

你如何使用Ruby提示输入sudo密码?

来源:互联网 

Often I find myself needing to write scripts that have to execute some portions as a normal user and other portions as a super user. I am aware of one similar question on SO where the answer was to run the same script twice and execute it as sudo, however that is not sufficient for me. Some times I need to revert to being a normal user after a sudo operation.Often I find myself needing to write scripts th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: