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

_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to