Post
Topic
Board Hardware
Merits 3 from 1 user
Re: GekkoScience NewPac / Terminus R606 (BM1387) Official Support Thread
by
zsmith
on 11/12/2019, 01:09:46 UTC
⭐ Merited by frodocooper (3)
These commands don't work in crontab -e:

Code:
@reboot ( /bin/sleep 30; /bin/bash /home/pi/git/vthoang/cgminer/x1R606b.sh >> /home/pi/cronjoblog 2>&1

or

Code:
01/12 * * * /bin/bash /home/pi/git/vthoang/cgminer/x1R606b.sh >> /home/pi/cronjoblog 2>&1

Once I save/exit out of crontab, it does say a new crontab instruction has been saved but nothing auto-starts from the GUI desktop after a test reboot.  I've read up and watched online videos that make it seem so easy and makes me wonder if there's a root, path, permission or script problem?

First check to see if cgminer is actually running in the background.
Code:
ps -ef | grep cgminer

If not, check to see if crond is even running.
Code:
ps -ef | grep cron

If cgminer isn't running and crond is, make sure you have a blank line at the end of your crontab, hit return after your last line of code.   If it's still not working, check what the log at /home/pi/cronjoblog says?