Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1615

Other Software & Customization • Re: Question about Script for Telnet/SSH/Python/Powershell

$
0
0
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. :???:
I found the solution. I decided to use Putty. The command line is as follows.

Code:

plink -batch -ssh admin@192.168.2.1 -pw PASSWORD "show interface dsl0" > Output.txt
"-batch" to pass "press any key"
"> 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



Viewing all articles
Browse latest Browse all 1615

Trending Articles