On 05/30/2011 03:25 PM, Marcel Svitalsky wrote:
> No, that's not correct. I do not use this syntax in the script at all.
>
> Besides, as I've mentioned above, not only the script runs OK from
> command line, it also runs OK from cron on Ub.-8.04 and it actually runs
> OK even here on Ub.-10.04.2 (it does all his job from start to end),
> only that here I don't get the output (and get that error line instead).
oops, my bad.
> Addition: the same error (the line 'expr: syntax error' in the mail that
> I receive from the job) actually appears even if the script produces no
> output (its log doesn't get published) and no mail should therefore
> arrive (i.e. when there are no new changesets).
So, if I understood you correctly, with 10.04.2:
* script runs correctly, produces output but you only receive an error
* script runs correctly, produces *no* output, but you still receive
an error
if the above it true, could you disable mailing, redirect the output of
your cron job to local files and see what difference this makes? eg:
MAILTO=""
0 12 * * * /path/to/script >/tmp/script.out 2>/tmp/script.err
This will bypass all the mailer code. If the error disappears, we'll
know it's the mailer's fault, otherwise it must be cron.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/790173
Title:
Cron doesn't send output properly
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs