Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged expect

0 votes
239 views
1 answer
    #!/usr/bin/expect spawn sudo pwd expect?"password" sent "mypassword " 程序到这里,应该是已经获得了sudo运行免密码,也就是第一次sudo pwd的时候,我用expect输入了密码 ... 得了sudo权限,如何让第二个spawn和第一个spawn是同一个进程啊?我想要一只免密码sudo...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...