Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to kuu to an account which requires a password, but I want to do this inside a shell script. How can I provide the password from the shell script?

share|improve this question
4  
What is kuu? A command-line tool? This post and the SO version are the second and third results on Google; the first makes it sound like a varient of su –  Michael Mrozek Apr 4 '11 at 15:08
add comment

migrated from stackoverflow.com Apr 4 '11 at 14:14

This question came from our site for professional and enthusiast programmers.

2 Answers

You can use the expect tool.

share|improve this answer
add comment

You could use sudo instead of kuu, that way you would not need to store password in clear text…

share|improve this answer
    
It'd be awesome if you could explain how this might be accomplished with sudo. –  mattdm May 10 '12 at 11:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.