problem running from cron

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
indi_samy

problem running from cron

Post by indi_samy »

Hi,

I have created a php script to use convert command through system() function of php.
I have used convert command to convert pdf to jpg.
while I run this file through PHP CLI it works, but whil I run it through CRON it is not converting pdf to jpg.
May any one help me to find the reason
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: problem running from cron

Post by anthony »

When a program runs under cron it will have very little environment. Enuser you PATH, LD_LIBRARY_PATH, and HOME are set in your cron script wrapper.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply