./autogen.sh: 4: ./autogen.sh: autoreconf: not found
You are moving forward a few steps, which is a good sign.
NOOBS probably left out some things not found by default in the
raspbian stretch lite image used as a base to create those initial post instructions.
sudo apt-get install -y autoconf
Hey vh, not sure if you can help, but i am trying to set up a crontab with a script to automatically stop and restart the miner on a pi raspbian stretch. Not sure why this script isnt working but can anyone lend a hand on what is wrong with my script?
Here is my script
runtask.sh
#!/bin/bash
pkill cgminer
CURRENTDATE=`date`
echo Cron Job Started: ${CURRENTDATE} >>/home/pi/git/vthoang/cgminer/runtask-log.txt
sleep 5
cd ~/git/vthoang/cgminer/
./cgminer --gekko-2pac-freq 180 -o stratum+tcp://bch.viabtc.com:3333 -u usaminer.2 -p 1 --suggest-diff 64
CURRENTDATE=`date`
echo Cron Job Finished: ${CURRENTDATE} >>/home/pi/CronOutput/cron.txt
exit
In my crontab i have
* */4 * * * pi /home/pi/git/vthoang/cgminer/runtask.sh >> /home/pi/git/vthoang/cgminer/taskerror.log 2>&1
I keep getting all sort of errors with different edits i try, but the one thing that always works in the script is pkill cgminer after that nothing works.
The script always stops at whatever i do especially at cd ~/git/vthoang/cgminer - all the different ways i have tried dont work.
Is there something that you guys have done that makes a good crontab script work with cgminer? I know in cgminer i can schedule start and stop arguments, but those are only one offs for one time in the day. I wanted to be able to start and restart cgminer at 4 hour increments everyday.
Thanks for anyone who can help on this. Have sepnt the last 4 days trying to get this work with no success.