From: Steve Jarvis Date: 2013-03-19T09:14:52+09:00 Subject: Cisco Ruby pexpect equivalent Hi All, This is my first post (long time lurker) Is anyone aware of a compatible library to python's "pexpect"? What I'm looking for is the pexpect.interact() function in a ruby library/gem. I don't see an equivilent in net/ssh, /net/telnet, ruby expect, etc... This is the excerpt from the python library " interact(self, escape_character='\x1d', input_filter=None, output_filter=None) This gives control of the child process to the interactive user (the human at the keyboard). Keystrokes are sent to the child process, and the stdout and stderr output of the child process is printed." For a general idea of what I'm using python pexpect.interact for is: script logs into device script runs a few commands (show ip interface brief, show log, show ver etc.) prints some generalizations (router is receiving errors on port blah blah, or last user logged in was (user), etc...) script then turns over control of the router prompt to me the user (this is the pexpect.interact() part) Any help would be greatly appreciated. Thanks, FamGrudenza -- Posted via http://www.ruby-forum.com/.