<div dir="ltr">Hello,<br><br>I am trying to run pcp command without having to type the user's password manually, but I have not been successful.<br><br><b>I use this script:</b><br><br>server_node_list=(0 1 2 3)<br>for server_node in ${server_node_list[@]}<br>do<br>    source $HOME/.bash_profile<br>    export PCPPASSFILE=/var/lib/pgsql/.pcppass<br>    node_status=$(pcp_node_info -p 9898 -h localhost -U postgres -n $server_node -w | cut -d ' ' -f 3);<br><br>    if [[ $node_status == 3 ]]<br>    then<br>        pcp_attach_node -h localhost -n $server_node -U postgres -p 9898 -w -v<br>    else<br>        pcp_attach_node -h localhost -n $server_node -U postgres -p 9898 -w -v<br>    fi<br>done<br><br><b>.pcppass</b><br><br>localhost:9898:postgres:my_password<br><br><b>When I run this script it gives me the following error:</b><br><br>FATAL:  authentication failed for user "postgres"<br>DETAIL:  username and/or password does not match<br><br>Regards!<br><br></div>