Last active
January 17, 2019 07:51
-
-
Save HAOYUatHZ/48e9c550253bc68828103d67b5a1561c to your computer and use it in GitHub Desktop.
This file contains 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
#!/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