Cannot get Script to Run Via Crontab

Christian Walther cptsalek at
Sun Dec 16 11:41:02 PST 2007


On 16/12/2007, David Goodnature <goodnaturenet at> 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


More information about the freebsd-questions mailing list