[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] How to handle remote shell prompt for input?
From: |
Jordi Funollet |
Subject: |
Re: [Fab-user] How to handle remote shell prompt for input? |
Date: |
Tue, 15 Jun 2010 15:32:01 +0200 |
User-agent: |
KMail/1.13.2 (Linux/2.6.32-21-generic; KDE/4.4.2; i686; ; ) |
On Monday 14 June 2010 19:33:31 Jonathan Livni 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...
I have the mysql user/password in a '~/.my.cnf' for the user running
'mysqldump'. Most Mysql tools read this file automatically, so you won't be
prompted.
http://dev.mysql.com/doc/refman/5.1/en/option-files.html
Don't forget protecting the file with 'chmod 600 ~/.my.cnf'
--
##############################
### Jordi Funollet
### http://www.terraquis.net