View Full Version : I want to add a cron job to Vivvo CRON file
braun
11-23-2007, 01:45 PM
Hi,
I want to execute a script http://mysite.com/folder/script.php through Vivvo Cron.
I want to add this to Vivvo cron file. How and where should I add this script so that it get executed.
andy77
11-23-2007, 02:46 PM
I don't think there is such thing as "Vivvo Cron". If you want to include some script in crontab, do it via cPanel or SSH...
braun
11-23-2007, 05:26 PM
I suppose we can add some lines to cron.php
shketuljko
11-26-2007, 10:03 AM
You can use this:
Go to VIVVO_ROOT/lib/vivvo/framework/vivvo_cron.php and after this line (around 176 line):
if ((intval($last_shedule) < time()) && (intval($cron_list->list[$cron_keys[$i]]->lastrun) < intval($last_shedule))){
you can add your script. You need to use require_once or require or include method for this.
Example:
include( 'path_to_your_script');
Please refer to this documentation http://www.php.net/manual/en/function.include.php
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.