LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Bash script - using "expect"? (https://www.linuxquestions.org/questions/programming-9/bash-script-using-expect-4175451671/)

Silver565 02-25-2013 04:23 PM

Bash script - using "expect"?
 
I'm trying to write a script that will login to a sonicwall and run the export config command for me. Now... sonicwalls are quite annoying, you can't pass your username straight in, they look like this http://tinyurl.com/atawg5l)

So I somehow, have to tell the script to pass my username and password in and then run the one line command I'd like.

Any ideas? Should I be using expect?

Really doing my head in...

linosaurusroot 02-26-2013 03:02 AM

autoexpect is the easiest way to write expect scripts. You just do stuff and it learns to copy you.

Silver565 02-27-2013 12:43 AM

Thankyou :)


All times are GMT -5. The time now is 06:28 AM.