Running commands via Plink
Posted: Sat Jun 20, 2015 4:51 am
Hi.For some reasons I want to use plink to login and run OpenWRT commands in a single command.Although it works fine when I issue commands like free ,fd ,etc...but it returns with not found error with uci,wifi,etc... .
Also when I login first and then issue the commands they worked well without any error.
Can Anyone help me about that?
Code: Select all
C:\>plink -L 8000:192.168.1.1:22 root@192.168.1.1 -pw 12345623 uci commit
ash: uci: not found
Can Anyone help me about that?