Index: scheduler.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/scheduler/scheduler.module,v
retrieving revision 1.37.2.11
diff -u -p -r1.37.2.11 scheduler.module
--- scheduler.module	15 Nov 2006 21:13:51 -0000	1.37.2.11
+++ scheduler.module	19 Apr 2007 07:46:59 -0000
@@ -18,6 +18,21 @@ function scheduler_perm() {
   return array('schedule (un)publishing of nodes');
 }
 
+/**
+ * Implementation of hook_menu().
+ */
+function scheduler_menu($may_cache) {
+  $items = array();
+  if ($may_cache) {
+    $items[] = array(
+      'path' => 'scheduler/cron',
+      'type' => MENU_CALLBACK,
+      'callback' => '_scheduler_run_cron',
+      'access' => TRUE,
+    );
+  }
+  return $items;
+}
 
 /**
  * Implementation of hook_form_alter().
@@ -207,6 +222,13 @@ function scheduler_cron() {
   }
 }
 
+function _scheduler_run_cron() {
+  scheduler_cron();
+  if (ob_get_level() > 0) {
+    ob_clean();
+  }
+  exit();
+}
 
 /**
  * Scheduler API to perform actions when nodes are (un)published
