I found the solution. I decided to use Putty. The command line is as follows.Then that's the path you should explore. If it worked once and then it didn't, then it's most likely something you did or didn't the first time, or some detail in the script that needs some attention (like, say, not logging off before trying to log on again or similar - not saying it's this, it's just an example). Me, I tried to enable telnet and connect to my router for some arbitrary output like command help and such in order to test your script and see how it behaves, but telnet didn't want to connect in the first place even though I allowed in the firewall, so that was the farthest I could go with it.
Code:
plink -batch -ssh admin@192.168.2.1 -pw PASSWORD "show interface dsl0" > Output.txt
"> Output.txt" to save output to file
If you have more than one command line, you can call it in your script.
Code:
plink -batch -ssh admin@192.168.2.1 -pw PASSWORD -m Margin8.txt
Statistics: Posted by tass_co — Today, 4:30 am