Skip to content

Instantly share code, notes, and snippets.

@sirpy
Created May 30, 2018 09:22
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 sirpy/1960f9087bcec0eaf69016bf4e77255e to your computer and use it in GitHub Desktop.
Save sirpy/1960f9087bcec0eaf69016bf4e77255e to your computer and use it in GitHub Desktop.
#!/usr/bin/expect -f
set wallet "wallet1.json"
set password "****"
set timeout -1
cd neo-cli
spawn dotnet neo-cli.dll --rpc
expect "neo>"
send "open wallet $wallet\n"
expect "password:"
send "$password\n"
expect "neo>"
send "start consensus\n"
expect "OnStart"
interact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment