publicationsnsa.blogg.se

Redhat you are not allowed to use this program crontab
Redhat you are not allowed to use this program crontab













redhat you are not allowed to use this program crontab redhat you are not allowed to use this program crontab

This will bring up an editor window (the first time it may ask you which editor to use). Use the following command (as root) substituting the correct user in place of ''apache' for CentOS, 'www-data' for Debian/Ubuntu, '_www' for macOS-Google will know!) 'Crontab' is both a file containing the user's cron commands and is also the name of the (command line) program used to edit it. Once you have selected (and tested!) an appropriate command to invoke the Moodle cron it must be added to the web users 'crontab' to schedule it to run regularly. (no output is displayed - remove the -o /dev/null/ -silent to test) (no output is displayed - remove the -O /dev/null/ to test) Possibilities are as follows (OSX, for example, only ships with curl). The idea is to call the following web page (you can try this from your browser):Ī command line (text based) browser is needed to run this on the server. NOTE: In order to use the web based cron script you must first check Cron settings to make sure this method is permitted. In particular, suspect an alternate php.ini for the CLI PHP command which may not have suitable settings. Tip:: If you have problems, see the PHP page. If you are not sure about the path to PHP you can type " which php". You can simply type this on the command line this to see if it works. (substitute the correct path to moodle and for php as required) usr/bin/php /path/to/moodle/admin/cli/cron.php The correct command will be something like. If you have the PHP CLI version installed then this is the recommended method of invoking cron. Most systems with PHP installed will have this by default. Your system needs to be set up to do this specifically you need the 'CLI' version of PHP to be installed. PHP is also capable of running programs directly from the command line. If you have a choice, this is normally the best way to run Moodle cron. 3 Using the crontab program on Unix/Linux.1 Method 1: The command line (cli) cron.















Redhat you are not allowed to use this program crontab