From owner-freebsd-questions@FreeBSD.ORG Sun Dec 16 19:51:03 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 1DDE416A417 for ; Sun, 16 Dec 2007 19:51:03 +0000 (UTC) (envelope-from listreader@lazlarlyricon.com) Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by mx1.freebsd.org (Postfix) with ESMTP id BC4C913C45B for ; Sun, 16 Dec 2007 19:51:02 +0000 (UTC) (envelope-from listreader@lazlarlyricon.com) Received: from ironport.bredband.com (195.54.101.120) by proxy2.bredband.net (7.3.127) id 47285ABF01181A85 for freebsd-questions@freebsd.org; Sun, 16 Dec 2007 20:51:01 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AutRAOsQZUfVcij+Rmdsb2JhbACBV44kAQEBNwGBIZcW Received: from c-fe2872d5.09-42-6e6b7010.cust.bredbandsbolaget.se (HELO trapper.homedns.org) ([213.114.40.254]) by ironport1.bredband.com with ESMTP; 16 Dec 2007 20:51:01 +0100 Received: from trapper.homedns.org (localhost [127.0.0.1]) by trapper.homedns.org (8.14.2/8.14.2) with ESMTP id lBGJp00b004990; Sun, 16 Dec 2007 20:51:00 +0100 (CET) (envelope-from listreader@lazlarlyricon.com) Message-ID: <476581A4.3020605@lazlarlyricon.com> Date: Sun, 16 Dec 2007 20:51:00 +0100 From: Rolf G Nielsen User-Agent: Thunderbird 2.0.0.9 (X11/20071212) MIME-Version: 1.0 To: David Goodnature References: <14989d6e0712161140h5d614accje0fefd370029b73b@mail.gmail.com> In-Reply-To: <14989d6e0712161140h5d614accje0fefd370029b73b@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Christian Walther , freebsd-questions@freebsd.org 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: Sun, 16 Dec 2007 19:51:03 -0000 Christian Walther wrote: > Hi, > > On 16/12/2007, David Goodnature 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > It's also possible to define a PATH variable (and other environment variables too, for that matter) in the crontable. Put them at the top of the file, above the actual table. -- Sincerly, Rolf Nielsen