ruwolf wrote:I do not know such program (which cannot be run from bash script).
BTW, there are 2 types of commands: built-in utilities (in shell) and stand-alone programs.
I don't say it cannot run, but for some reason, it is not running. The command, instead of executing, returns it's own menu help as if the command syntax is wrong, but it is not because I added a line to "echo" the built command and copied it to the terminal and ran it and it worked.
I think this might be related somehow with bash and the program itself, which is a bridge to a JSON application to run RPC commands.
To be more specific, I'm trying to run a bitcoin core command. This command is bitcoin-cli with a bunch of parameters that will communicate with an already running bitcoin daemon which then sends the command to a JSON server and returns the response to the daemon which will in turn send it to this bitcoin-cli program that I'm using from within my script!
To make it simpler, the workflow is like:
bitcoin-cli sends an "user-friendly RPC" to bitcoind daemon.
bitcoind ddaemon converts this command into a JSON RPC and sends it to the JSON server
server responds to bitcoind daemon
bitcoind deamon converts this JSON response into a JSON object properly formatted and sends it to bitcoin-cli
bitcoin-cli shows that JSON object in terminal with the result of the JSON RPC.
Somewhere in the middle, my script, which simply builds this command that bitcoin-cli sends to bitcoind daemon, probably have some issue that prevents the command to be correctly sent from bitcoin-cli to bitcoind.