2018-01-14-2113Z


mining on a VPS and sending the winnings home...

jcomeau@ns003:~$ crontab -l
31 * * * * $HOME/bin/sendhome.sh
jcomeau@ns003:~$ cat ~/bin/sendhome.sh 
#!/bin/bash
PATH=$PATH:/usr/src/AmericanCoin/src
balance=$(americancoind getbalance)
if [ "$balance" != "0.00000000" ]; then
 americancoind sendtoaddress AgBgumrwpkFP6LwDJvuRKQX7b4KYTKxDKE $balance
fi

Back to blog or home page

last updated 2018-01-14 16:15:55. served from tektonic