Skip to content

Instantly share code, notes, and snippets.

@veox
Created June 18, 2014 15:55
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 veox/f9b406965b1bd924f005 to your computer and use it in GitHub Desktop.
Save veox/f9b406965b1bd924f005 to your computer and use it in GitHub Desktop.
sgminer launch script
#!/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