In terminal if I login with ssh and run a command like service something reload
it runs just fine, but when I execute the same command in a nodejs script with the ssh2 library (.exec
function) it doesn't run and i get an error "ash: command not found".
Tried with sudo service..
but it's same thing.
Some commands do work tho, like uptime
or ifconfig
, but service doesn't and I need that one. The server to which I am connecting is a router that runs open wrt.
from SSH command works in terminal, but fails with nodejs / ssh2
No comments:
Post a Comment