Giorgos Keramidas writes:

>  > 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;
>  >
>  > 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.


                                Robert Huff

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to