diff --git a/lam/lib/cron.sh b/lam/lib/cron.sh new file mode 100755 index 00000000..ef0fb3e7 --- /dev/null +++ b/lam/lib/cron.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +dir=`dirname $0` + +if [ -x /usr/bin/php5 ]; then + /usr/bin/php5 -f $dir/cron.inc $* + exit $? +elif [ -x /usr/bin/php ]; then + /usr/bin/php -f $dir/cron.inc $* + exit $? +fi + +echo "No PHP executable found" + +exit 1 \ No newline at end of file