View Full Version : DA Cron jobs?
chris10121
02-18-2008, 03:41 PM
Does DirectAdmin have a cron job setup page?
I need to setup a cron job to run once a day.
Conrad
02-18-2008, 04:23 PM
Yes it has.
If you are the admin, switch to userlevel and there u see the link to
the page where you can setup cronjobs.
If you are a user it depend on if the admin or reseller granted you rights to setup a cronjob.
chris10121
02-19-2008, 12:52 AM
Any reason why the following sends an email to me saying
"/bin/sh: php: command not found"
Cron job i entered into directadmin is:
"php -q /home/savehost/domains/save-host.com/(my cron job name here)"
(my cron job name here) is the script I am using but I didn't want to post it in a public area.
I'm using CentOS 5, php 2.5.2
try to use:
<full-path-to-php>/php -f <your-script>
/usr/local/bin/php -f /home/savehost/domains/save-host.com/cronscript.php
chris10121
02-19-2008, 06:21 AM
try to use:
<full-path-to-php>/php -f <your-script>
/usr/local/bin/php -f /home/savehost/domains/save-host.com/cronscript.php
hey do u mean -f or -q?
i mean " -f "
# php --help
Usage: php [options] [-f] <file> [--] [args...]
php [options] -r <code> [--] [args...]
php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
php [options] -- [args...]
php [options] -a
... some skipped ...
-f <file> Parse and execute <file>.
just try and reply...
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.