I'd like to create an expect script that connects to the server via telnet and does some authorisation. I have a problem with using script parameters though. Based on man I expected this to work:
#!/usr/bin/expect -f
spawn telnet $argv1 5038
...
Unfortunately I get back can't read "argv1": no such variable
. How can make this work?