After my script logs into the server automatically I want it to run 2 commands, the first is “configure terminal” and the second is “copy startup-config ftp configuration-id 1” and then i want it to logout, how can I do this using expect?
I have tried several methods to try to get it to work but it doesn’t run properly all it does so far is automatically log in to the server but it doesn’t run the commands i want it to run once it does log in.
David Palafox is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.