sfreiberg/simplessh

question: execute app

Arnold1 opened this issue · 6 comments

Hi,

how can you start an app which i uploaded with func (c *Client) Upload(local, remote string) error before?

the app will be uploaded to the /home directory and i need to start it via ./myapp 1

Have you tried using:

(c *Client) Exec(cmd string) ([]byte, error)

An example would be:

out, err := client.Exec("./myapp 1")

ok, will try.

also how can you upload a file to the /home directory?

You listed the function call in your first post. An example is pretty straightforward:

err := client.Upload("/path/to/local/file", "~/filename.txt")

works. thanks!

Is your GOPATH variable set to a valid directory?

On Tue, Jun 9, 2015 at 3:05 AM, Arnold1 notifications@github.com wrote:

i tried on windows 7:

go get github.com/sfreiberg/simplessh
package golang.org/x/crypto/ssh: unrecognized import path "golang.org/x/crypto/s
sh"

any idea about that issue?


Reply to this email directly or view it on GitHub
#2 (comment).

Sam Freiberg

fixed it, the problem was that the proxy server settings where not visible to git....