Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2007 19:10:31 +0000
From:      David Goodnature <goodnaturenet@hotmail.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Cannot get Script to Run Via Crontab
Message-ID:  <BLU127-W2769D67D198ACB69ECC1B5AA610@phx.gbl>

next in thread | raw e-mail | index | archive | help


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 = "/usr/local/bin/ps2pdf -dPDFSETTINGS=/prepress -dProcessColorModel=/DeviceGray -dAutoRotatePages=/PageByPage -dDownsampleMonoImages=true -dMonoImageDownsampleType=/Average -dMonoImageDownsampleThreshold=1.5 -dMonoImageResolution=600 ".$inpath.$cur_ps_files[0]." ".$outpath.$pdffilename;

   ### create the new .pdf file from the .ps file
   system($scomd) == 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=TXT_TAGHM_Wave2_powerofwindows_122007


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