I have the current script written to get me into the router.
"plink.exe" -ssh username@host -pw password < "input.txt"
The problem is once I am in the router I need it to enable and then enter another password in before I can execute commands. When I run this script it gets to the enable part but does not enter in the password. From what I am understanding in my "input.txt" I have the command "enable" which it executes, but if I put anything after that it runs it as a new command. After I enter in the "enable" command I need it to enter a password before executing more commands and I can't just put it right underneath "enable" in the "input.txt."
Is there a way to fix this?
Here is the input.txt I have set up
enable
password
config t
(I would like to enter different commands here once in configuration mode)
Thank you for your help.