Page 1 of 1

problem running from cron

Posted: 2007-11-22T23:53:12-07:00
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

Re: problem running from cron

Posted: 2007-11-26T20:56:38-07:00
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.