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.

5
  • Cron does not invoke the shell as a login shell when launching commands. Commented Mar 26, 2014 at 1:24
  • That's why forcing it with bash -l option. Commented Mar 26, 2014 at 1:43
  • Oh, I misunderstood what you were saying. While this works, I wouldn't consider it a very elegant solution :-/ Commented Mar 26, 2014 at 1:46
  • 1
    Sure. The elegant thing would be to tune whatever environment set for cron ... Commented Mar 26, 2014 at 1:48
  • Wouldn't --norc be closer to what cron runs? Commented Mar 26, 2014 at 2:58