0
I've set up this todo.txt add-on and now I want to run todo.sh recur
every morning. I've got Lingon (a Mac GUI) running the command, but I get the following error:
5/15/12 10:33:00.067 AM ryan-recurring-tasks: Can't exec "todo.sh": No such file or
directory at /Users/ryan/Dropbox/todo/.todo.actions.d/recur line 70.
I was advised to set the environment variable explicitly, but I'm not sure of the syntax. I've tried all these, but no dice:
launchctl setenv TODO_SH $TODO_SH
launchctl setenv TODO_SH $/Users/ryan/Dropbox/todo/todo.sh
launchctl setenv TODO_SH /Users/ryan/Dropbox/todo/todo.sh
Here are my Lingon settings for the command, in case there's an option there that might help. I don't know what the "Changes to this path" field represents...
Thanks for any help!
That file does exist, and here's the reference to todo.sh (around line 70) that is throwing the error:
for my $add (@$adds) { my @args = ($ENV{TODO_SH}, "command", "add", $add); (system(@args) == 0) or die "system @args failed: $?"; }
– rda3000 – 2012-05-15T17:14:14.800So that's a php script? It seems like you'd need to call it like so,
php -f /Users/ryan/Dropbox/todo/todo.sh
Does it run if you invoke it manually? – Peet Corelli – 2012-05-16T00:35:16.857it's perl - and it runs manually with just the command
todo.sh recur
– rda3000 – 2012-05-16T13:27:59.383