Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying an input stream for commands expecting a TTY input #50

Open
ddimtirov opened this issue Jul 22, 2014 · 2 comments
Open

Comments

@ddimtirov
Copy link

Ideally we would want a DSL along the lines of 'expect', but as a very minimum, the ability to pump stuff through an input stream will allow us to run kinit.

@aadamovich
Copy link
Member

Yes, that would be nice. Not quite sure yet how to implement it though

@nthykier
Copy link

Hi,

Admittedly the tty part is (currently a bit beyond me). I have made a sample patch in nthykier@32d2b62a for adding support for adding an "input" option to exec. It contains an UTF-8 encoded string that is to be the new process's stdin.

Sadly I was unable to make a test case for it. I wanted to do a "cat -" process in BaseSshTest that simply set output to be input, but all my attempts let to the test hanging.

If time permits, I will try to field test it on a "real" system, but for now it is just an untested patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants