Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    The difference is almost certainly related to the environment; interactive shells carry a whole lot of environment with them, while cronjobs have a much more minimal one that you largely need to set up by hand. Look to see what environment variables the process is using. Commented Sep 8, 2015 at 20:56
  • Remove the --quiet flags and rerun with cron. What is the output? Commented Sep 8, 2015 at 20:56
  • For sure it doesn't use any special variable, also with --quiet it doesn't help a lot because it doesn't print anything valuable. dirvish-runall is a perl script nothing special! I am not sure where should i look next. The output is something like 00:19:01 dirvish --vault test.local 00:19:01 done, nothing more nothing less. Commented Sep 8, 2015 at 21:25
  • 1
    Thank you both. @TomHunt you were absolutely correct, i checked thoroughly the perl script and the system call for a binary was not using an absolute path so that was the issue. Thanks a lot! Commented Sep 8, 2015 at 21:40