Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2007 19:40:59 +0000
From:      "Christian Walther" <cptsalek@gmail.com>
To:        "David Goodnature" <goodnaturenet@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cannot get Script to Run Via Crontab
Message-ID:  <14989d6e0712161140h5d614accje0fefd370029b73b@mail.gmail.com>
In-Reply-To: <BLU127-W2769D67D198ACB69ECC1B5AA610@phx.gbl>
References:  <BLU127-W2769D67D198ACB69ECC1B5AA610@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On 16/12/2007, David Goodnature <goodnaturenet@hotmail.com> wrote:
[...]
> The cron message to mail/root ends with:
>
>    exec: ps2pdf12: not found
>
>
> I am assuming that cron cannot find a path or a config file for ghostscript, but I don't have any idea how to fix this problem.
>
> Any help would be appreciated.
>
When calling scripts from cron you only have a very minimal PATH,
something that is /bin:/usr/bin. You have two options: Create a Path
in Script yourself, and make sure that this is really passed over to
the Environment your commands are executed in.
Another option is to exec commands with their full qualified pathname.
In this case you don't have to care wether or not the path is set up
properly.

HTH
Christian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14989d6e0712161140h5d614accje0fefd370029b73b>