Skip to content

Instantly share code, notes, and snippets.

@BaksiLi
Created November 8, 2019 17:40
Show Gist options
  • Save BaksiLi/70eccae64712c2027100bd7f6875bbeb to your computer and use it in GitHub Desktop.
Save BaksiLi/70eccae64712c2027100bd7f6875bbeb to your computer and use it in GitHub Desktop.
Mine for an hour with interval to avoid Server CPU limitation alert
#!/bin/bash
time_run=2940 # 49 mins in secs
time_rest=60
func="minergate-cli --user <your.email@server.suffix> --<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
@BaksiLi
Copy link
Author

BaksiLi commented Nov 29, 2019

After:
Screenshot 2019-11-29 at 18 19 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment