shell - Python fabric How to send password and yes/no for user prompt -
I have created a fabfile with many hosts.
I am automating my experiment
- New Unix Password
- Confirm Password.
- Cell, pH, etc.
- Is this information accurate? Y / N
I want to pass all this information as a part of the script without prompting the user. How can I do this?
thanks
You only use pipes Why not?
For example, to accept an automatic auto, just use yes, which just displays a new stream of y.
yes | In your case: local ('echo' your_super_password \ n '| esdu aducer - group thumbnail hduser')
Code>
Comments
Post a Comment