Simple Expect problem.. please help :)
Hey folks,
I'm somewhat familir with Expect, however I've come to a point where I need to write a script to log into a remote machine, execute a command (that being a shell script on the remote machine) and assign the output of that command to a variable and possibly an array if more than one.
My script intends to log into the machine and run a script to determine whether the "informix" userid exists. The shell script on the remote box (isinformixhere.sh) works perfectly.
Here's the segment of my Expect script which I'm having problems with:
set informix [exec $scriptdir/isinformixhere.sh]
The problem is, of course, the exec command runs the command on the LOCAL machine. and not the remote machine. Is there a way to execute a remote command in this fashion.
Any help or suggestions would ge GREATLY appreciated! Thanks!
|