(oops, accidentally hit send)

On 05/30/2011 01:45 PM, Marcel Svitalsky wrote:
> The problem is that when run by cron on my newly installed Ubuntu
> 10.04.2 I don't get the output in mail but only 'expr: syntax error'
> line instead.
> 
> Obviously I thought there was some error in the script at first, but
> after trying and checking I've found none. Besides, the script runs OK
> from command line and the same script runs OK from cron on Ubuntu 8.04.

I only briefly browsed your script, but judging from the error I'm
nearly certain it has something to do with variable expansion.

Running a script successfully from the command line does not guarantee
that cron will run it successfully, because the former may involve many
stages cron does not perfom. Examples include: mounting of home dir,
parsing of dotfiles, having an X session running, etc.

In your case, I assume there was an `expr $foo $bar` somewhere in the
part of the script you sanitized.

Is my assumption correct?

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to