Skip to content

Instantly share code, notes, and snippets.

@calvinchengx
Created January 14, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinchengx/40ae8147ed1ed58e24b503a9a5476cf6 to your computer and use it in GitHub Desktop.
Save calvinchengx/40ae8147ed1ed58e24b503a9a5476cf6 to your computer and use it in GitHub Desktop.
expect <<EOF
set timeout -1
spawn ./hedera -X setup
expect "default account does not exist\r"
expect "Start the setup process\r"
expect "account ID in the format of 0.0.xxxx that will be used as default operator: \r"
send -- "0.0.82319\r"
expect "Recover account using 24 words or keys? Enter words/keys: \r"
send -- "words"
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment