Shared Hosting for Everyone, imagined by developers, for developers.
Discovering the Public CloudWeb apps or services sometimes need to periodically run tasks, commands or call up URLs with no user interaction. To manage them you should create a scheduled task.
Our platform is based on Debian and its crontab but allows them to be directly managed from our administration interface - menu Advanced > Scheduled tasks - making their use easier.
Several kinds of information need to be provided:
$HOME/admin/logs/jobs/
directory. It gives you the start and end of the task.If your script needs to allow some IPs, allow these IP adresses ranges.
crontab -e
command. The two systems are separate.source venv/bin/activate && python
is specific to Bash and can’t function. To replace by venv/bin/python
,Every ten minutes, the WordPress tool starts to run the scheduled tasks:
alwaysdata administration interface:
php $HOME/wordpress/htdocs/wp cron event run --due-now
Equivalent crontab syntax:
*/10 * * * * php $HOME/wordpress/htdocs/wp cron event run --due-now
Refreshing an RSS backend with TT-rss, every day at 10:30:
alwaysdata administration interface:
php $HOME/tt-rss/update.php --feeds --quiet
Equivalent crontab syntax:
30 10 * * * php $HOME/tt-rss/update.php --feeds --quiet
A report is sent when the return code is different from 0. If the task is not executed, no email is sent. ↩︎