Skip to content

Instantly share code, notes, and snippets.

@samidarko
Created October 1, 2017 03:52
Show Gist options
  • Save samidarko/f108a51b86acd15d35b90b1a7eddc2a6 to your computer and use it in GitHub Desktop.
Save samidarko/f108a51b86acd15d35b90b1a7eddc2a6 to your computer and use it in GitHub Desktop.
zec/start.sh
#!/usr/bin/env bash
cd ${HOME}/zec
SRV="eu1-zcash.flypool.org:3333"
ADDRESS=""
RIG=`hostname`
LOGFILE="logs/stdout.log"
ERRORLOG="logs/stderr.log"
nohup ./bin/nheqminer_cuda_tromp -cd 0 1 2 3 4 5 -cb 12 16 -ct 64 128 -l ${SRV} -u ${ADDRESS}.${RIG} 2> $ERRORLOG > $LOGFILE &
PID=$!
echo ${PID} > pid
echo "process started with pid ${PID}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment