TZ=GMT ./xdag -d -m 2 pool:ip
TZ=GMT date
Handy bash scripts when you want to update the code, connect to console, start mining without changing the directory all the time and remembering commands (place in your home directory, where git clone was also executed):
xdag_update.sh
#!/bin/bash
PIDS="`pidof xdag`"
if [ "$?" -eq 0 ]; then
echo "Daemon is running! Stop it before recompiling. PIDs: ${PIDS}"
echo "run ./xdag_console.sh and type 'terminate' to terminate the daemon."
exit 1
fi
echo Updating git repository...
(cd ~/cheatcoin && git pull && cd ./cheatcoin && make)
echo "Done! Start the daemon with ./xdag_run.sh"
#!/bin/bash
PIDS="`pidof xdag`"
if [ "$?" -eq 0 ]; then
echo "Daemon already running? PIDs: ${PIDS}"
echo "run ./xdag_console.sh and type 'terminate' to terminate the daemon."
exit 1
fi
echo Starting daemon...
(cd ~/cheatcoin/cheatcoin && TZ=GMT ./xdag -d -m 20 54.37.158.221:13654)
echo -n "Daemon PIDs: "
pidof xdag
#!/bin/bash
pidof xdag > /dev/null
if [ "$?" -ne 0 ]; then
echo "Daemon not running! Start it with ./xdag_run.sh"
exit 1
fi
echo Starting console...
(cd ~/cheatcoin/cheatcoin && TZ=GMT ./xdag -i)
echo -n "Daemon PIDs: "
pidof xdag