12-04-2014 07:19 AM
I am trying to run plink, the ssh command line utility from the putty set, to login to an iAP VC and execute some commands. I have got all the login part working but can't get any of the commands to execute, let alone the pipe to an output file.
plink USERNAME@IPADDRESS -pw PASSWORD < help.txt >> output.txt
I've followed a lot of online examples but always get an error 137. Looks like the iAP is refusing the passing of the commands?
Any help appreciated.
12-04-2014 07:28 AM
The commandline is interactive and would requre a tool like expect to script most interactions. Plink is good for connecting to a device, but it is not good for scripting in an interactive session (http://the.earth.li/~sgtatham/putty/0.52/htmldoc/C
You would probably want to use TCL/Expect: http://linux.about.com/od/softorther/a/Tcl-Expect-
Aruba Customer Engineering
Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base
Validated Reference Design Guides : http://community.arubanetworks.com/t5/Validated-Reference-Design/tkb-p/Aruba-VRDs