Post
Topic
Board Hardware
Merits 3 from 1 user
Re: GekkoScience NewPac / Terminus R606 (BM1387) Official Support Thread
by
Cohenpol
on 10/12/2019, 21:59:43 UTC
⭐ Merited by frodocooper (3)
Hi zsmith and all  Grin

I wonder if you can help again before I headbutt my keyboard  Shocked I must be doing something wrong or have a script/permission issue.  My saved mine.sh text file reads as this:

Code:
#!/bin/sh
echo "Restarting cgminer every 24 hours"
while true
do
 lxterminal -e "/home/pi/git/vthoang/cgminer -o stratum+tcp://de.ckpool.org:3333 -u myusername -p mypassword  --gekko-r606-freq 750 --widescreen"
 sleep 86400
 pkill -f cgminer
 echo "Restarting cgminer..."
 sleep 4
done

I changed the file permission as 'only owner' and played around with all sorts of commands from page 7 and 66.  No lines of code seem to work in either:

Code:
sudo nano /etc/rc.local

or

Code:
sudo crontab -e

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?  I'm using noobs/raspbian and recent to this phase of the project, I carried out a:

Code:
sudo apt-get update && sudo apt-get -y full-upgrade

Would this 'full-upgrade' instead of just the normal 'upgrade' have caused an effect and is there a way to revert versions if this is part of the issue?  I'm happy enough running 24/7 with no issues but really want to nail this last phase in-case of power, network and zombie problems when afk.  Thanks in advance  Wink