Open thunder2k opened 5 years ago
I was also having this same issue and discovered that the script has no PATH set and thus the cron user is unable to properly locate those commands. By editing the script with the following it fixed it:
vi /usr/local/sbin/rpi-clone
add the following under the first line of "#!/bin/bash":
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin"
Thanks for the hint, I'll test it and let you know!
EDIT: I've tested it and works perfectly,thanks a lot!!
Many thanks @charlie-young! I was having this exact issue as well 👍
!/bin/bash
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin"
Oddly enough, although I have the latest version of the script on my Pi 3B+, this line was not present. I added it. Hopefully I stop getting that error message.
Hi, Thanks for this great project, that's exactly what I was looking for! It's working flawlessly when I run it manually.
When I tried to schedule the following command via sudo crontab:
/usr/local/sbin/rpi-clone sda -u
I got the following error output via email:Am I missing something or there's an issue here?
Thanks!!