2020-05-17 15:25:40 +03:00
|
|
|
# Start an interactive bash session in the current bash environment.
|
|
|
|
|
2020-05-18 00:46:44 +03:00
|
|
|
USAGE_INFO='
|
|
|
|
Starting shell...
|
|
|
|
Run "c COMMAND" to execute a command on the bitcoin node
|
2020-10-18 14:41:55 +03:00
|
|
|
Run "c" to start a shell session inside the node
|
|
|
|
|
|
|
|
Example:
|
|
|
|
c systemctl status bitcoind
|
|
|
|
'
|
2020-05-18 00:46:44 +03:00
|
|
|
|
2020-05-17 15:25:40 +03:00
|
|
|
# BASH_ENVIRONMENT contains definitions of read-only variables like 'BASHOPTS' that
|
2020-05-18 00:46:44 +03:00
|
|
|
# cause warnings on evaluation. Suppress these warnings while sourcing.
|
2020-05-17 15:25:40 +03:00
|
|
|
BASH_ENVIRONMENT=<(declare -p; declare -pf) \
|
2020-05-18 00:46:44 +03:00
|
|
|
USAGE_INFO="$USAGE_INFO" \
|
|
|
|
bash --rcfile <(echo '
|
|
|
|
source $BASH_ENVIRONMENT 2>/dev/null
|
|
|
|
echo "$USAGE_INFO"
|
|
|
|
')
|