I have the following code, which I would think would be simple, but then again, I'm just trying to figure expect out:
set ZERO [lindex $argv 3]
set ONE [lindex $argv 4]
set TWO [lindex $argv 5]
set THREE [lindex $argv 6]
set timeout 360
I get the following when I run it. Why don't I get the variables sent to standard output?
testbox-[root]/home/share/daldrid/work/aix/rootpw> exptest.exp test1 test2 test3 test4
expect version 5.39.0
argv = /usr/bin/expect argv = -d argv = exptest.exp argv = test1 argv = test2 argv = test3 argv = test4
set argc 4
set argv0 "exptest.exp"
set argv "test1 test2 test3 test4"
executing commands from command file exptest.exp
Thanks in advance!