Running Your Shell Scripts With Crontab
Crontab allows you to clock and run your own Unix shell scripts
automatically. It is available only in Unix-based plans and requires the
knowledge of Unix shell commands.
To enable crontab jobs, do the following:
1. Select FTP User in the FTP menu.
2. Enable Crontab.
3. Agree with charges, if any.
4. Click the Edit icon for Crontab.
5. On the page that appears, add the crontab job:
Commands are executed by cron when the minute, hour, day and month
fields match the current time, and when at least one of the two day
fields (day of month, or day of week) match the current time. In the
Command box write a command to be executed by cron, i.e. path relative
to your root home directory -- ~/crontab.sh (~/ places you in your user's folder, so no long paths are needed)
Cronjob times can be set to have every x time value by setting prefixing it with "*/" . So for example, you can have a cron run every 5 minutes by setting */5 as the minute mark.
The Mail-To address is where the system will direct outputs from the script
To delete a job, check the box in the Delete section and click Submit Query.
- 537 Users Found This Useful
Related Articles
How to add a domain / website for hosting
To add a domain for hosting, please do the following: Login to the control panel (please see...
How to create subdomains? (sub.domain.com)
To add a subdomain, please do the following: Login to the control panel -- please see...
Where do I upload files for the web site? (public_html)
Hsphere has a true separate domain setup and as such there isn't a central "public_html" folder...
How can I test my site before changing DNS? (instant aliases)
To test your site before changing the DNS nameservers, you can use the instant access alias that...
Hsphere User Guides
User guides for our hsphere control panel are available at our downloads section for user guides:...