Post
Topic
Board Mining (Altcoins)
Re: Official FutureBit Moonlander 2 Driver and Support Thread
by
aarons6
on 10/11/2018, 00:06:32 UTC
Can anyone please give an example of running a cron job for BFGminer on RPI to close and reopen every hour.

i have a sh file with this in

#!/bin/bash
./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20460 -u xxx.miner1 -p miner1,d=128 -S ALL --set MLD:clock=600

Any help for a Linux noob would be great, a lot of people i know with RPI are having issues with the moonlanders randommly just hash at 0 mh/s until the software is restarted.

Kind Regards

Paul
https://en.wikipedia.org/wiki/Cron

so something like this could work.
* 1 * * * killall -9 bfgminer

to make your life easier tho just use minera
https://bitcointalk.org/index.php?topic=596620.0

it has the option to do what you want internally.

one thing tho you have to expand the img to the full size of the sdcard you can do it in the rpi utils really easy.