I'm trying to automate a deployment of an application by Python-fabric. The installation has to be done without any human intervention.
In CentOS 6.4 server the if i install mysql through
$yum install mysql-server
Then mysql is installed with a NULL password.
Now the problem is when i reset the mysql
root password from fabric by issuing :
run("mysqladmin -u %s -p password %s " % ('root','khd5u8bWN'))
It prompts for a password (which is NULL) and i have to press the return key to proceed.
Now as i want to achieve "full" automation, i want this "pressing enter" automatically. How can i achieve this in python-fabric?