Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set up this todo.txt add-on and now I want to run 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 "": 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/

launchctl setenv TODO_SH /Users/ryan/Dropbox/todo/

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!

share|improve this question
up vote 0 down vote accepted

The recur script is expecting to be in your path (that's what $TODO_SH eventually expands to). There are a number of ways to add your extended path (including the Dropbox todo dir) to launchd's path, but the better fix may be to edit the recur add-on to say:

my @args = ($ENV{TODO_FULL_SH}, "command", "add", $add);


If that works, let me know, I'll update the released script.

share|improve this answer
Thanks, worked a charm. – ryancito May 30 '12 at 18:01

It looks like the script depends on /Users/ryan/Dropbox/todo/.todo.actions.d/recur. Does this file actually exist?

The "Changes to this path" options tells launchd to execute the script or command when the given folder is changed. It's unrelated to your problem.

share|improve this answer
That file does exist, and here's the reference to (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: $?"; } – ryancito May 15 '12 at 17:14
So that's a php script? It seems like you'd need to call it like so, php -f /Users/ryan/Dropbox/todo/ Does it run if you invoke it manually? – Peet Corelli May 16 '12 at 0:35
it's perl - and it runs manually with just the command recur – ryancito May 16 '12 at 13:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .