Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Regarding ASA/SAT in particular, you might want to do a little bit of research on OSSI -- it's what other management apps and scripts use to communicate with CM. – Stemen Sep 22 '12 at 6:16
up vote 2 down vote accepted

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 with other docs, etc.

share|improve this answer
The autoexpect is also great for helping build an expect script while watching you do the task/once. – Aaron Bush Oct 22 '10 at 23:29
I was looking for something that would be in the default Solaris/Linux install. The red tape for installing aftermarket software on a server is horrendous... But thanks for the recommendation. – Luke has no name Oct 25 '10 at 17:55
I had just assumed it was in the default install, but I guess not. I would expect that the political is the only issues, as you can get packages for most things. Of course, political is often the hard thing. – Ronald Pottol Oct 26 '10 at 23:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.