Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Crons can be used to run scheduled jobs of your application. Crons are executed as www-data user. For further information how to schedule a cron, you may use https://crontab.guru/.

(warning) Please note that crons are not utilized any path variable. Commands are required to included full path like /usr/bin/php.


To create a cron job via PHP following commands are required:

<? file_put_contents('/tmp/crontab.txt', '* * * * * NEW_CRON'.PHP_EOL); echo exec('crontab /tmp/crontab.txt'); ?>

The commands can also be verwendent to edit the crontab or delete them.

To delete  the crontab following command can be used:

echo exec('crontab -r');


Related tutorials

Filter by label

There are no items with the selected labels at this time.

Related component documentation

Filter by label

There are no items with the selected labels at this time.

INTERMEDIATE


Related questions

There are no items with the selected labels at this time.

  • No labels