From owner-freebsd-questions@FreeBSD.ORG Mon Dec 17 12:27:55 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B3B916A418 for ; Mon, 17 Dec 2007 12:27:55 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 9764113C4E1 for ; Mon, 17 Dec 2007 12:27:54 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lBHCRaPY000973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Dec 2007 14:27:49 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id lBHCRVXC002350; Mon, 17 Dec 2007 14:27:31 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id lBHCRVV4002349; Mon, 17 Dec 2007 14:27:31 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 17 Dec 2007 14:27:30 +0200 From: Giorgos Keramidas To: Robert Huff Message-ID: <20071217122730.GA2323@kobe.laptop> References: <20071217075424.GB2398@kobe.laptop> <18278.26945.843337.942745@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18278.26945.843337.942745@jerusalem.litteratus.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.004, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.40, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org, David Goodnature Subject: Re: Cannot get Script to Run Via Crontab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2007 12:27:55 -0000 On 2007-12-17 07:19, Robert Huff 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 :)