...
...
Warning |
---|
You have tried to access an archived page. Please go to the new https://root360.atlassian.net/wiki/spaces/KB to find more documents. |
...
To create a cron job via PHP following commands are required:
Code Block | ||||
---|---|---|---|---|
| ||||
<? file_put_contents('/tmp/crontab.txt', '* * * * * NEW_CRON'.PHP_EOL); echo exec('crontab /tmp/crontab.txt'); ?> |
Code Block |
---|
The commands can also be used to edit the crontab or delete them.
To delete the crontab following command can be used:
Code Block | ||||
---|---|---|---|---|
| ||||
echo exec('crontab -r'); |
Code Block |
---|