Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron job doesn't set the time #25

Open
kisspeti opened this issue May 30, 2023 · 1 comment
Open

Cron job doesn't set the time #25

kisspeti opened this issue May 30, 2023 · 1 comment

Comments

@kisspeti
Copy link

I use Raspberry Pi 4 with Raspberry Pi OS 64 and I installed the megaind repository. If I run set_time.sh from terminal it works, but when I set a cron job it doesn't. I have to set the full path to megaind in set_time.sh to work with cron.

t=$(/usr/local/bin/megaind 0 rtcrd)

https://github.com/SequentMicrosystems/megaind-rpi/blob/dbd74395461a73d679b6d19d1c133ee994e36adc/rtc/set_time.sh#LL20C1-L20C21

@alexburcea2877
Copy link
Member

Hi,

Theoretically the megaind command is available to all users but your solution is a good one for all situations.
Thank you, we will change the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants