I wrote the code below and will try to execute it. But I encounter an "invalid command name" do "at runtime do {"
the code:
set val 0;
set input 5;
do {
puts "\nval = $val"
set input [expr $input-1];
set val [expr $val+1];
} while {input}
Please let me know to fix this problem. Does as long as exist in an Expect script?
source
share