From owner-freebsd-questions@FreeBSD.ORG Sun Dec 16 19:41:02 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 2282916A417 for ; Sun, 16 Dec 2007 19:41:02 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by mx1.freebsd.org (Postfix) with ESMTP id 3139813C4D9 for ; Sun, 16 Dec 2007 19:41:00 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so1410719fka.11 for ; Sun, 16 Dec 2007 11:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7Y81UEmOx8Q6gfbPHp+y7Z63GtvTUoJNEtL8VJVMhqg=; b=RzZCZjVVgGtPAME3AVl+uv1fsXVy2x+GpJpxP2NcBeKWgX3UmVr19H/czdGlp61PmH9qwG3I31/NJvaQLz+ghcociZy/4Nye9Xsv6JW4wnVFtTSXqYi3cMSDcJeXD+bqcclUd3aZVoGWhWHtpqH9oJZgrvgKFdWtinpIXRzHJ8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Cj+23LRROT/5iYV3lJUxF0u/yLvK+RI+V9RS+FOlfmsXb4fwOOwm4yu3VXNKLctBSCnGsXHXNaVSaGsHWzA4Uc64Ss8IhRpCxsKZUP9VCmW/qLKemfFgUloSlnZE8Ni+cmdJqImUiT5RoaBQjbxi6HPA09rI5/lnRovD8KUinac= Received: by 10.82.148.7 with SMTP id v7mr2643783bud.10.1197834059218; Sun, 16 Dec 2007 11:40:59 -0800 (PST) Received: by 10.82.164.16 with HTTP; Sun, 16 Dec 2007 11:40:59 -0800 (PST) Message-ID: <14989d6e0712161140h5d614accje0fefd370029b73b@mail.gmail.com> Date: Sun, 16 Dec 2007 19:40:59 +0000 From: "Christian Walther" To: "David Goodnature" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: 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:41:02 -0000 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