I am trying to integrate a new crypto currency into an exchange, using "chaucha-cli", but when executing the command that creates the address, from PHP with the exec command, it throws me the following:
incorrect rpcuser or rpcpassword
The current code:
$command = "echo -e '' | sudo -S /home/user/chaucha-daemon/./chaucha-cli getnewaddress 2>&1 -rpcuser=user -rpcpassword=password";
Executing said command from terminal, it executes correctly.