Rewrite shell example to not leave secrets in the history file

This commit is contained in:
paveljanik 2016-08-01 10:28:44 +02:00 committed by Pavel Janík
parent ced6c940da
commit 719208c66f
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ The RPC command line client gained a new argument, `-stdin`
to read extra arguments from standard input, one per line until EOF/Ctrl-D.
For example:
$ echo -e "mysecretcode\n120" | src/bitcoin-cli -stdin walletpassphrase
$ src/bitcoin-cli -stdin walletpassphrase
mysecretcode
120
..... press Ctrl-D here to end input
$
It is recommended to use this for sensitive information such as wallet
passphrases, as command-line arguments can usually be read from the process