jacobwgillespie/plex-sync

Just unable to setup a cronjob

Closed this issue · 1 comments

Hi All!!

Could someone please assist me with setting up a crontab for this? I am able to run the commands directly and via a bash script works fine too.

Just something via cron isn't working for macOS.

I have the following setup:
CRON = 0 * * * * bash ~/cronjob-plex.sh

Permission of cronjob-plex.sh = -rw-r--r--@ 1 USERNAME staff 354 May 4 17:15 cronjob-plex.sh

BODY of cronjob-plex.sh =
——————————

#!/bin/bash

PLEX_TOKEN=T0k3n MATCH_TYPE=fuzzy /usr/local/bin/plex-sync 10.20.30.41/1 10.20.30.42/1

——————————

Thanks,
Pravin

Ok.. this worked...

I modified the script to the following:

#!/bin/bash

PATH=/usr/local/bin

PLEX_TOKEN=T0k3n MATCH_TYPE=fuzzy /usr/local/bin/plex-sync 10.20.30.41/1 10.20.30.42/1

Hope this helps someone!