How to automating interactive command ?
Tuesday, 24. April 2007, 18:05:42
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.
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.













