Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2007 14:27:30 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        freebsd-questions@freebsd.org, David Goodnature <goodnaturenet@hotmail.com>
Subject:   Re: Cannot get Script to Run Via Crontab
Message-ID:  <20071217122730.GA2323@kobe.laptop>
In-Reply-To: <18278.26945.843337.942745@jerusalem.litteratus.org>
References:  <BLU127-W2769D67D198ACB69ECC1B5AA610@phx.gbl> <20071217075424.GB2398@kobe.laptop> <18278.26945.843337.942745@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-12-17 07:19, Robert Huff <roberthuff@rcn.com> wrote:
>Giorgos Keramidas writes:
>>> The lines from my script that are causing the problem are:
>>>    [...]
>>> 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.
>>  
>>  Yes.  That's what is happenning.  The default PATH of cron jobs doesn't
>>  include `/usr/local/bin', but you have lots of options:
>>  
>>    1) Add it to the crontab file
>>  
>>    2) Modify the default path in your Perl script:
> 
> Allow me to recommend the second, as it will not disturb other cron
> programs that may be expecting the default path.

That is a very good point :)




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