diff --git a/scheduler.module b/scheduler.module index 48b22d1..abf9ad3 100644 --- a/scheduler.module +++ b/scheduler.module @@ -112,14 +112,15 @@ function scheduler_help($section) { . '
' . t('The options and settings below are common to all content types.') . '

'; break; case 'admin/config/content/scheduler/cron': + $hostname = $_SERVER['HTTP_HOST']; $output = '

' . t("When you have set up Drupal's standard crontab job cron.php then Scheduler will be executed during each cron run. " . "However, if you would like finer granularity to scheduler, but don't want to run Drupal's cron more often then you can use the " . "lightweight cron handler provided by Scheduler. This is an independent cron job which only runs the scheduler process and does not " . "execute any cron tasks defined by Drupal core or any other modules.") . '

' . '

' . t("Scheduler's cron is at /scheduler/cron and a sample crontab entry to run scheduler every minute might look like:") . '

' - . '* * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron"' + . "* * * * * /usr/bin/wget -q -O /dev/null \"http://$hostname/scheduler/cron\"" . '

or

' - . '* * * * * curl "http://example.com/scheduler/cron" > /dev/null 2>&1

'; + . "* * * * * curl -s -o /dev/null \"http://$hostname/scheduler/cron\"

"; break; case 'admin/help#scheduler': // This is shown at the top of admin/help/scheduler.