Error on running exec command
Posted: Mon Jun 11, 2007 5:34 am
I hope this is the right forum, as this is a little bit php and a little bit Linux command line stuff
I am running the exec function to run a command on the box, which returns the current Exim queue size.
If I run this line of php via the command line, and echo the variable I get the results I'm looking for. However, when I run the same php page via a CRON job, instead of using the var in the code it emails me the following error
sh: exim: command not found.
Does anyone know what this means.? I understand something can't find the exim command, but I don't know what as this works perfectly from the command line.
Thanks in advance
I am running the exec function to run a command on the box, which returns the current Exim queue size.
Code: Select all
$queue_size = exec('exim -bpc');sh: exim: command not found.
Does anyone know what this means.? I understand something can't find the exim command, but I don't know what as this works perfectly from the command line.
Thanks in advance