On 6/17/11 12:15 AM, Brock Noland <brockn at gmail.com> wrote:

> On Fri, Jun 17, 2011 at 4:56 AM, Paul Fierro <pablo at freefill.com> wrote:
>> Hi,
>> 
>> Trying to run this but it isn't working - I'm suspecting it's the quotes:
>> 
>> $ ssh machine1 "ssh machine2 "mysql -e "show databases"""
>> 
>> I tried various combinations of single and double quotes as well as
>> backslashes. Can anyone help?
> 
> Have you tried double, single, escaped double?
> 
> $ ssh localhost "ssh localhost 'echo \"1      2\"'"
> 1      2

That works - thanks!

Yaron - tried removing all quotes and it didn't work. Good idea, though.

Paul