Skip navigation.

Bit's World

Hope the best,plan the worst!

Posts tagged with "expect"

How to automating interactive command ?

, , ,

Interactive command invoke problem is common in develop unix like project.

The most popular answer is use the Expect:

http://expect.nist.gov/

and other things like perl expect module and so on.

A very light answer is the empty utility:

http://empty.sourceforge.net/

with this small utility, you need not to take much time to install expect.

I'd like to mention that to call the empty script in Java and so language, the source may be modified to set up the correct pesedo terminal parameters.