1 |
On 08/11/2010 03:16 PM, Bill Longman wrote: |
2 |
> <snip> |
3 |
>> What's different between my root environment and the one in which cron |
4 |
>> runs (with respect to ruby and its gems)? Where should I start looking? |
5 |
> |
6 |
> No direct answer, sorry, Michael. |
7 |
> |
8 |
> You might want to use: |
9 |
> |
10 |
> /bin/bash -l -x -c /root/src/mailshears/bin/mailshears |
11 |
> |
12 |
> to at least help debug it. |
13 |
> |
14 |
|
15 |
Thanks for the tip. The cron environment was missing |
16 |
"RUBYOPT=-rauto_gem" -- adding it fixed the problem. |
17 |
|
18 |
Dark magic, whatever it does. |