Windows batch scripting: SSH with Plink showing strange sequences in output
问题 I am scripting some command line operations for collecting and parsing specific network metrics from a Palo Alto 5060 firewall. I am using Plink and Windows batch scripting. @echo off "C:\path\to\plink.exe" -ssh user@1.2.3.4 -pw password < "C:\path\to\commands.txt >> "C:\path\to\output.txt" The content of the commands.txt is simple at the moment. show interface ethernet1/1 I cannot get this to work. My output.txt has the following results: Last login: Tue Nov 24 15:43:13 2015 from localhost