Hello all,
I am writing an Expect script which logs into a remote machine and determines if a userid (informix) exists on that system to determine if it needs a password reset. I am faced with the problem of executing the shell script on the remote machine which will give me the output to assign to a variable in my Expect script.
The shell script on the remote system is: isinformixhere.sh
The command I've tried to use to execute the remote script and assign it to a variable in my expect script is:
set informix [exec "$scriptdir/isinformixhere.sh\n"]
However, of course, the exec command tries to execute the command on the local machine. Can someone explain how I can execute the command on the remote machine? Thanks for all your help!
I am writing an Expect script which logs into a remote machine and determines if a userid (informix) exists on that system to determine if it needs a password reset. I am faced with the problem of executing the shell script on the remote machine which will give me the output to assign to a variable in my Expect script.
The shell script on the remote system is: isinformixhere.sh
The command I've tried to use to execute the remote script and assign it to a variable in my expect script is:
set informix [exec "$scriptdir/isinformixhere.sh\n"]
However, of course, the exec command tries to execute the command on the local machine. Can someone explain how I can execute the command on the remote machine? Thanks for all your help!