Created
June 18, 2014 15:55
-
-
Save veox/f9b406965b1bd924f005 to your computer and use it in GitHub Desktop.
sgminer launch script
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
#!/usr/bin/sh | |
extraopts="$*" | |
config="/home/veox/.sgminer/sgminer.conf.nfactor" | |
logdir="./log" | |
branch="`git branch --no-color | grep -E "^\*" | cut -d' ' -f2`" | |
today="`date +%Y-%m-%d`" | |
now="`date +%H-%M-%S`" | |
./sgminer $extraopts --config $config 2> $logdir/$today-$now-$branch.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment