How does konsoleH’s Cronjob Manager work?
Print Email
Email this article
Close
Email this article
CloseYou are here: Home > Website Support > Cronjobs
The konsoleH Cronjob Manager makes it possible for clients to set-up commands that will run automatically at set intervals. The tool’s intuitive web interface allows you to manage your crontab file, enabling you to create, edit and remove cronjobs.
Access Cronjob Manager via konsoleH:
- Browse to konsoleH (http://myaccount.hetzner.co.za)
- Login with your Client number and Management password
- Select or search for a domain name in the ‘Hosting Service’ tab
- Select ‘Manage Services’ from the left-hand menu
- Select ‘Cronjob Manager’
Cronjob Manager controls:
- To add a Cronjob, select ‘Add’ at the top-right
- To delete a Cronjob, select the Cronjob by placing a tick in the checkbox next to the Cronjob, and then select ‘Delete’ at the top-right
- To edit Cronjobs in the “Crontab editor” format, select ‘Advanced View’ at the top-right
- To view the Cron log for current Cronjobs, select ‘View Log’ at the top-right
When setting up a Cronjob, the file paths for different types of scripts differ.
To run a PHP script, use the following:
/usr/bin/php <full path to filename>
To run a bash script, use the following:
/bin/bash <full path to filename>
I.e The full path to the script to be executed should be included in the Cronjob command. Below are examples of Commands to execute in the correct format:
To run a PHP script:
/usr/bin/php /usr/home/FTP_USERNAME/cron.php
To run a bash script:
/bin/bash /usr/home/FTP_USERNAME/cron.sh
Note: Please ensure to replace ‘FTP_USERNAME’ with the relevant FTP user name for your domain.
Cronjob Manager limitations:
- A maximum of 10 cronjobs are allowed
- Cronjobs may not run more than once every two hours
- Processes initiated from Cronjobs will be terminated automatically should they use more system resources than is permitted
Cronjobs can also be edited directly on the hosting server by advanced users on a per-domain bases using SSH.
This can be done by running the command below, once logged in:
crontab -e
Please see below for more information on the “crontab” and the layout used in adding entries as a cron job:
http://crontab.org/
Was this information helpful?
Yes NoThank you for your feedback
We are delighted to find that our article resolved your query.
Thank you for your feedback
We will resolve your query as soon as possible.
Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.
