Created
November 8, 2019 17:40
-
-
Save BaksiLi/70eccae64712c2027100bd7f6875bbeb to your computer and use it in GitHub Desktop.
Mine for an hour with interval to avoid Server CPU limitation alert
This file contains hidden or 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 | |
time_run=2940 # 49 mins in secs | |
time_rest=60 | |
func="minergate-cli --user <[email protected]> --<target-currency>" | |
#Loop and record | |
while true; do | |
start_time=`date +%Y/%m/%d\ %H:%m:%s` | |
timeout $time_run $func | |
end_time=`date +%Y/%m/%d\ %H:%m:%s` | |
echo "$start_time -> $end_time" >> miner.log | |
sleep $time_rest | |
done | |
#EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After:
