View Single Post
  #1  
Old 24th September 2012, 02:32
Imam86 Imam86 is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Unhappy Cron Job php with '.....' in the ending

Hello.. I'd like to ask about php cron job with '....' in the ending.

30 * * * * php -q /var/www/clients/client5/web5/web/billing/services.php 'mailer'


I'm using Debian Squeeze, with ISPConfig 3.0.4.6
And from this tutorial: http://www.howtoforge.com/perfect-se...ot-ispconfig-3

I configured like this:

Client Limits
--------------

Code:
Max. number of Shell users : 0
Allowed Cronjob : Chrooted Cron
Cron Job
----------

Code:
Command to run: https://example.com/billing/services.php 'mailer'
Code:
root@server1:~# ls -la /etc/cron.d
total 40
drwxr-xr-x   2 root root 4096 Sep 23 14:35 .
drwxr-xr-x 105 root root 4096 Sep 23 14:32 ..
-rw-r--r--   1 root root  179 Dec 16  2010 amavisd-new
-rw-r--r--   1 root root  243 Sep 20 15:46 awstats
-rw-r--r--   1 root root   74 Sep 22 04:15 ddos.cron
-rw-r--r--   1 root root 1474 Sep 23 14:44 ispc_web5
-rw-r--r--   1 root root 1393 Sep 20 15:35 mailman
-rw-r--r--   1 root root  506 Sep  6 07:05 munin-node
-rw-r--r--   1 root root  499 Sep 14 05:59 php5
-rw-r--r--   1 root root  102 Dec 18  2010 .placeholder
Code:
root@server1:~# cat /etc/cron.d/ispc_web5
MAILTO=''
SHELL='/bin/sh'

30      *       *       *       *       web5    /usr/bin/wget -q -t 1 -T 7200 -O /dev/null 'https://example.com/member/services.php '\''mailer'\''' >/dev/null 2>&1        #example.com

But I got this error:

Code:
root@server1:~# cat /var/log/syslog
server1 /USR/SBIN/CRON[25156]: (CRON) error (grandchild #25163 failed with exit status 8)

I really don't understand, I use the same configuration with the other php files, and it's running cron job well, but with '....' in the ending?

I'm sorry for my bad English.

How to solve this..??

Thanks for your help and attention.
Reply With Quote
Sponsored Links