People should disclaim which shell (type, version) is working with the
different solutions offered.  I'm curious to see how much variety there
is...  The version of /bin/sh or the remote user's SHELL as defined in
/etc/password on the far end may be relevant.

-Rob

On Fri, Jun 17, 2011 at 2:28 PM, Paul Fierro <pablo at freefill.com> wrote:

> On 6/17/11 6:17 AM, Scott Raun <sraun at fireopal.org> wrote:
>
> > On Thu, Jun 16, 2011 at 11:56:14PM -0500, Paul Fierro 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?
> >
> > I saw that you got it working, but as an alternative, does this work?
> >
> > $ ssh machine1 "ssh machine2 "mysql -e show\ databases""
>
> Didn't work for me, but thanks for offering another alternative.
>
> Paul
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20110617/37312f01/attachment.html>