Creating Cron Jobs

Please Note:

The text on this page was translated by translation software. A revised version from our editors will be available soon.

For Linux Web Hosting packages and Managed Dedicated Server

With Cronjobs recurring tasks can be completed automatically.

Here you can learn how to create cronjobs. For example, you can back up data from your presence automatically on a regular basis.

You can manage the entries for cronjobs with the program Crontab. The following options are available:

  • -u = user: Specifies the user name on whose behalf an event file is to be executed. This option is only available to the superuser (root). All other system users can only edit their own event files.

  • -l = (list): Displays the contents of the current event file.

  • -d = (delete): Deletes the event file from the directory ./crontabs.

  • -r = file (replace): Replaces the event file in the./crontabs directory with the specified.

  • -e = (edit): Creates or edits the crontab file. When you call this function, the Vi editor is usually started automatically. As soon as you leave the editor, the edited crontab file is installed automatically.


To create cron jobs, proceed as follows:

Step 1

Log in to your web space via SSH and enter the command crontab -e.

Step 2

The crontab file of the user who is currently logged into the editor appears. The editor used here is VI.

Step 3

Enter your cronjobs and close the editor. The message Installing Crontab appears on the screen.