Login   Register  
PHP Classes
elePHPant
Icontem

It's not creating the cronjob

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Cpanel Cron Job Connector  >  All threads  >  It's not creating the cronjob  >  (Un) Subscribe thread alerts  
Subject:It's not creating the cronjob
Summary:addCronJob is not working
Messages:3
Author:Stephen Funk
Date:2012-12-19 03:21:28
Update:2012-12-20 18:58:45
 

  1. It's not creating the cronjob   Reply   Report abuse  
Picture of Stephen Funk
Stephen Funk
2012-12-19 03:21:28
Hi,

I was very happy to find your class. It is going to be very helpful in my webapp.

I have been successful in getting the following working:
getCronJobs()
setEmail()
getCronJob($cronkey)

These all working tells me I have authentication and the connection setup correctly.

However, when I try to run:

addCronJob(0,0,"*","*","*","php /home/xxx/public_html/utilities/runDF.php");

it does not create the job. I don't get any error. And While I set debug=true I am not getting any info.

Is there anything you can see that I have wrong in the call of the function?

Regards,
Steve

  2. Re: It's not creating the cronjob   Reply   Report abuse  
Picture of Seyhun Cavus
Seyhun Cavus
2012-12-20 18:58:45 - In reply to message 1 from Stephen Funk
I agree that this class needs a little bit of update but it does break any functionality and works as expected.

The parameters should be string values. Try string '0' instead of integer 0.
Let me know later what happened.

  3. Re: It's not creating the cronjob   Reply   Report abuse  
Picture of keshav kalra
keshav kalra
2014-10-13 06:24:22 - In reply to message 1 from Stephen Funk
Me too facing this problem

bad command errors in crontab file, can't install

SimpleXMLElement Object ( [apiversion] => 2 [data] => SimpleXMLElement Object ( [linekey] => c8eb5d334f1b13759f7be922f5ad4f3a [status] => 0 [statusmsg] => "-":37: bad command errors in crontab file, can't install. ) [error] => "-":37: bad command errors in crontab file, can't install. [event] => SimpleXMLElement Object ( [result] => 1 ) [func] => add_line [module] => Cron [postevent] => SimpleXMLElement Object ( [result] => 1 ) [preevent] => SimpleXMLElement Object ( [result] => 1 ) )