Re: [go-nuts] Running commands via SSH

2016-11-26 Thread Ayan George
kburke...@gmail.com wrote: > Hi, I'd like to SSH to a remote host and run an arbitrary command. I found > this pretty difficult to do with existing Go libraries. > > The first problem I had was around escaping; commands run locally are > appropriately escaped but I found it difficult to get the

Re: [go-nuts] Running commands via SSH

2016-11-26 Thread Shawn Milochik
It works for me (over ssh) when I run this string as the command: `echo 'zdUZUKv{<&MsZG'` Use backticks for the string literal, then enclose your argument string in single-quotes. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Running commands via SSH

2016-11-26 Thread kburkeorg
Hi, I'd like to SSH to a remote host and run an arbitrary command. I found this pretty difficult to do with existing Go libraries. The first problem I had was around escaping; commands run locally are appropriately escaped but I found it difficult to get the right escaping for commands run remo