Re: expect - problem split argv 0, then send each item as command



On Apr 21, 6:45 am, inetquestion <inetquest...@xxxxxxxxxxx> wrote:
Tried this same script on solaris machine with ksh and it works fine.
The problem with the original attempt seems to be some control
characters in the prompt when using fedora/bash.  Is there a way to
accommodate all shells with a regex that accounts for control chars?

-Inet

That did not work for me either, when usig "/usr/bin/expect". Try
installing the ActiveTcl distribution of Tcl and use
"package require Expect"
in your script. That works for me.

---Victor
.


Quantcast