[Tutor] responding to command line

Patrick Hess patrickhess at gmx.net
Wed Nov 25 03:27:47 EST 2015


richard kappler wrote:
> and I want the script to detect that password request and provide the
> password (Same for all 500 + machines, so no issue there).

My recommendation would be to take a look at Expect[1].

Yes, I know, it's not Python, but using a tool specifically
tailored to handle this kind of task will make life so much
easier that it even justifies the use of Tcl. ;-)

Patrick

[1] http://expect.sourceforge.net


More information about the Tutor mailing list