Apologies, but a bit of a newbie when it comes to Ubuntu but I am going out of my head with this and need some help.
I have a script that I have written that works is I execute it by itself. :-
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:~/bin
cd environments
cd Garmin
cd Sync
python3 sync.py -f 2018-01-01 -t 2025-01-01
The issue is that I have a crontab job for it to run every hour, but it is not running (as it is not updating weight measurements)
00 * * * * ~/bin/sync.sh
Can anyone help. Apologies but just starting out if the coding looks long winded.
Thanks
– Gordster Jun 14 '19 at 22:10python3 /full/path/to/sync.py -f 2018-01-01 -t 2025-01-01
Also, if PATH is being set in the script, I don't see how cron would know where it is.env -i ~/bin/sync.sh
– Gordon Davisson Jun 14 '19 at 22:50