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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

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

You can use the expect tool.

share|improve this answer

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

Your Answer

 
discard

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