Created
January 30, 2017 21:28
-
-
Save mikeyb/124741675f990640fca7cb081c0ae3cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -s KEY | |
curl "http://localhost:7733/api/v1/mining/stop/${KEY// /%20}?api_key=YOURAPIKEY" | |
sleep 2 | |
curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' 'http://localhost:7733/api/v1/mining/info?api_key=YOURAPIKEY' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment