From: Siju George on
On Wed, Apr 21, 2010 at 2:46 PM, Mart Frauenlob
<mart.frauenlob(a)chello.at> wrote:
>
> mysql .... | while read; do
>        mysqldump -e "$REPLY" > ...
> done
>

Thanks a million :-)

It is working!!!

--Siju


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/t2rb713df2c1004210239gbb5a32b7te508b158bce44775(a)mail.gmail.com
From: Alexander Samad on
On Wed, Apr 21, 2010 at 11:04 PM, Wes Garland <wes(a)page.ca> wrote:
> Try
>
> `mysql -u root -pmy\\\$qlPW -N -B -e 'show databases'`
>
> I think that's right. Escape the $ so it doesn't get processed by the
> current shell, escape the slash so it doesn't get processed, falls to \$
> which then re-escapes the $ for passing into mysql as part of your password.
>
> Nick is on to something as well, this should also work:
>

maybe I am missing something but doesn't `` == $() which means execute
/ eval the arg

so `echo $$` should return PID of process

> `mysql -u root -p 'my\$qlPW' -N -B -e 'show databases'`
>
> Wes
[snip]


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/w2s836a6dcf1004211319me9999202l4c4f8b7bc7785bf0(a)mail.gmail.com