9 ms·
For python, there's pexpect: http://pexpect.readthedocs.org/en/latest/ http://pexpect.readthedocs.org/en/latest/
by pielud 12y ago
For python, there's pexpect: http://pexpect.readthedocs.org/en/latest/ http://pexpect.readthedocs.org/en/latest/
- zwischenzug 12y agoI used pexpect as a base technology for ShutIt: http://ianmiell.github.io/shutit/ http://ianmiell.github.io/shutit/ it really is 95% of tcl's expect functionality, much easier to debug and understand. I'm grateful it exists, and it's much under-used I think.
- emmelaich 12y agoNice. I have a somewhat similar tool but it doesn't do much besides check for password expiry and do password changes. It uses pexpect but also multiprocessing and multiprocessing.Queue. I built most of it before we started using Ansible at work, but it is still useful in those places where Ansible is clumsy.
- zwischenzug 12y agoInteresting - where is Ansible clumsy?
- emmelaich 12y ago(just noticed this) I was just sort of echoing your annoyed by the obfuscation and indirection of ... Ansible's prime raison d'être is not remote execution but configuration management.
- rPawel 12y agoIt was great to see ShutIt during the last Docker London!
- zwischenzug 12y agoThanks! A previous similar talk is the first link here: https://www.youtube.com/user/ianmiell https://www.youtube.com/user/ianmiell
- rPawel 12y agoThanks. Good luck Shutit and 2048 scores! :)
- klibertp 12y agoSomething similar for Lua: http://www.tset.de/lpty/ http://www.tset.de/lpty/
- chuto 12y agoWe used to use tcl expect before discovering pexpect. Cleaner syntax, fewer false positives, nothing but good experiences with pexpect.