How do you pass arguments in Expect script?

KellyPoima

New member
How do you pass arguments in Expect script?
Answer
You can make the expect not interpret the command line arguments using — flag. Normally you would read the command line arguments as shown below. $ cat print_cmdline_args. exp #!/usr/bin/expect puts ‘argv0 : [lindex $argv 0]’; puts ‘argv1 : [lindex $argv 1]’;
 

Tìm kiếm

Back
Top