[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: remote command issue
[Thread Prev] | [Thread Next]
- Subject: Re: remote command issue
- From: Audrius Butkevicius <audrius.butkevicius@xxxxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 07 Jul 2014 09:54:31 +0100
- To: libssh@xxxxxxxxxx
Hi,Not sure I understand the full extent of your problem, but here is some tips:
The directory of the executable should be on the PATH environment variable on the server side. If you are using libssh as the client, then I don't think it's libssh's fault as the shell you acquire just doesn't export the PATH correctly.
You could force the client to export the path by doing: PATH='/bin/;/sbin/;/usr/bin/;/usr/sbin/;' ssh user@serverIf you are using libssh as the server, then perhaps you should export some default path before you fork/exec. Alternatively, at least on unix, you can invoke your shell with the -l option (or depending on the shell set arg0 to a dash (-)) which should give you a proper login shell with the environment pre-prepared.
Thanks, Audrius.
remote command issue | Scott Tseng <zengen.scott8341@xxxxxxxxx> |