]> dev.renevier.net Git - syj.git/blobdiff - scripts/cron.php
call cron scripts with php cli
[syj.git] / scripts / cron.php
diff --git a/scripts/cron.php b/scripts/cron.php
new file mode 100755 (executable)
index 0000000..d351280
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env php
+<?php
+
+require_once realpath(dirname(__FILE__) . '/../public/init.php');
+
+$application->bootstrap();
+
+foreach (glob(realpath(APPLICATION_PATH . '/crons') . '/*.php') as $fname) {
+    require_once ($fname);
+}