fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] How to handle remote shell prompt for input?


From: Jeff Forcier
Subject: Re: [Fab-user] How to handle remote shell prompt for input?
Date: Tue, 15 Jun 2010 09:27:31 -0400

Hi Jonathan,

Generally, there's no way to do this yet. I'm making progress on
adding the ability to send your local stdin down the pipe, thus
allowing users to interact with arbitrary password prompts like the
one in question. However, that's not in yet, nor will it be coming to
the 0.9.x branch. (But 1.0 shouldn't be too far off at this point in
time, so there's that.)

Specifically, depending on your host's config, you may be able to
create a $HOME/.my.cnf file with the username and password you need to
connect to MySQL; I believe that will act as de facto authentication
for any MySQL binaries, though I'm not sure. (I know it works for
'mysql', at least.)

Don't recall offhand where in the MySQL docs they mention that
particular feature, but I'm sure it's there somewhere :)

Best,
Jeff

On Mon, Jun 14, 2010 at 1:33 PM, Jonathan Livni
<address@hidden> wrote:
> I need Fabric to pass an arbitrary string to the remote shell due to a
> user-prompt.
> Specifically I need to give the password to mysqldump command and my web
> hosting site does not allow the --password=[password] flag
> Only answer I could find on the web is "use pexpect", which isn't a good
> answer...
> Thanks
>   Jonathan
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby developer
http://bitprophet.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]