I am trying to use expect to interact with an ftp site, but I need to be able to pass a parameter to the expect script. If I don't set the shell the $1 variable is not recognised, if I set the shell expect fails.
I got an expect script as below. I dont remember the poster. See how using set and [lindex] you can pass parameters. Is this what you were looking for?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.