Running commands via Plink

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
User avatar
harsini
Posts: 84
Joined: Mon Jul 22, 2013 9:59 am
Location: Iran

Running commands via Plink

Post by harsini »

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... .

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
Also when I login first and then issue the commands they worked well without any error.
Can Anyone help me about that?

Post Reply