Skip to content

Instantly share code, notes, and snippets.

@HAOYUatHZ
Last active January 17, 2019 07:51
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 HAOYUatHZ/48e9c550253bc68828103d67b5a1561c to your computer and use it in GitHub Desktop.
Save HAOYUatHZ/48e9c550253bc68828103d67b5a1561c to your computer and use it in GitHub Desktop.
#!/bin/bash
ps -ef | grep 'sipe' | grep -v 'grep' | grep -v 'restart_sipe'
if [ $? -eq 0 ];then
kill -9 `ps -ef | grep 'sipe' | grep -v 'grep'| grep -v 'kill' | awk '{print $2}'`
else
echo 'Fail to find sipe process'
fi
mkdir -p $HOME/log/sipe/
current=`date +%Y%m%d%H%M%S`
nohup ./sipe-linux-1.0.0-amd64 --etherbase 0xed6ba568fd4f9d5fb3f0cdff2bf05593dd49fe7c --mine --minertype stratum --stratum.hashrate > $HOME/log/sipe/$current.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment