kusold / todoist-habitrpg

One way sync from Todoist -> HabitRPG
120 stars 14 forks source link

Using launchd instead of crontab? #20

Closed cygnoir closed 9 years ago

cygnoir commented 9 years ago

Hi. Does anyone with experience using launchd instead of crontab have a minute to help me set this up? I use launchd to schedule jobs on my Mac but have had no luck doing so with todoist-habitrpg yet.

Sorry, I know this isn't really an issue ... if only I would get over myself and learn vim. :)

cygnoir commented 9 years ago

I tried to use crontab instead, and I'm getting this error: /bin/sh: todoist-habitrpg: command not found

crookedneighbor commented 9 years ago

@cygnoir I have my crontab installed on a shared host, so I couldn't install it globally. I ended up creating a shell script that looks like this:

path/to/node path/to/todoist-habitrpg/main.js -u uuid -a api-key -t todoist-token

Does that make sense?

cygnoir commented 9 years ago

Ah, that helped me fix my launchd problem! Now launchd is working for me. :) Cheers!

crookedneighbor commented 9 years ago

:+1: