From owner-freebsd-questions@FreeBSD.ORG Sun Dec 16 19:22:33 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 B7C6D16A421 for ; Sun, 16 Dec 2007 19:22:33 +0000 (UTC) (envelope-from goodnaturenet@hotmail.com) Received: from blu139-omc2-s7.blu139.hotmail.com (blu139-omc2-s7.blu139.hotmail.com [65.55.175.177]) by mx1.freebsd.org (Postfix) with ESMTP id 6DE4713C468 for ; Sun, 16 Dec 2007 19:22:33 +0000 (UTC) (envelope-from goodnaturenet@hotmail.com) Received: from BLU127-W27 ([65.55.162.184]) by blu139-omc2-s7.blu139.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 16 Dec 2007 11:10:31 -0800 Message-ID: X-Originating-IP: [70.58.152.226] From: David Goodnature To: Date: Sun, 16 Dec 2007 19:10:31 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 16 Dec 2007 19:10:31.0731 (UTC) FILETIME=[53F8F830:01C84017] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:22:33 -0000 I have a perl script that I can execute from the command line as root. It = runs fine. When I try to automate it using the root crontab, the script fails. The lines from my script that are causing the problem are: my $scomd =3D "/usr/local/bin/ps2pdf -dPDFSETTINGS=3D/prepress -dProcess= ColorModel=3D/DeviceGray -dAutoRotatePages=3D/PageByPage -dDownsampleMonoIm= ages=3Dtrue -dMonoImageDownsampleType=3D/Average -dMonoImageDownsampleThres= hold=3D1.5 -dMonoImageResolution=3D600 ".$inpath.$cur_ps_files[0]." ".$outp= ath.$pdffilename; ### create the new .pdf file from the .ps file system($scomd) =3D=3D 0 or return "system $scomd failed: $?"; 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. _________________________________________________________________ Get the power of Windows + Web with the new Windows Live. http://www.windowslive.com?ocid=3DTXT_TAGHM_Wave2_powerofwindows_122007=