[wellylug] Bash script not working all the time

Bruce Hoult bruce at hoult.org
Fri Sep 16 13:49:43 NZST 2011

On Fri, Sep 16, 2011 at 1:45 PM, Peter Lynch <Peter.Lynch at fineos.com> wrote:
> Hi everyone,
> I have the following bash script which works, i.e. touches the specified
> file, when I run it from the command line, but not when it is run from
> cron.  Does anyone know why?

Most likely, 'postconf' is not in $PATH when run from cron.

As a normal user do "which postconf" note the output and then add
"export PATH=<theoutput>:$PATH" to the cron script.

More information about the wellylug mailing list