I work with Avaya Site Administrator, telephony software. ASA has an emulator mode (513) that you enter to execute custom commands (I assume this is basically entering a specialized shell).
I am wondering how I can pipe commands to another shell/emulator from Bash and capture the output to a file. Hope this makes sense.
Explore the Expect programing language.
Exploring Expect is the title of the O'Reilly book for doing just that.
"Written by the author of Expect, this is the first book to explain how this part of the UNIX toolbox can be used to automate Telnet, FTP, passwd, rlogin, and hundreds of other interactive applications. Based on Tcl (Tool Command Language), Expect lets you automate interactive applications that have previously been extremely difficult to handle with any scripting language."
Yes, it's 16 years old, here is the page for the language now http://expect.sourceforge.net/ with other docs, etc.