Planning tasks

Support Wissensdatenbank

Du bist hier:

If you want to run scripts in your hosting account at specific times, you can use the Task Scheduler to instruct the system to run the scripts according to a specified schedule.

You can view all tasks created for a subscription by logging into Hosting Management and going to Websites & Domains > Scheduled Tasks.

You can change the settings for each task in the list by clicking on the task name. You can activate the task by clicking on the icon click. If you want to disable it, click on the symbol . Or start the task immediately.

If you want to create a scheduled task, go to Websites & Domains > Scheduled Tasks > Add Task.

Then you must first select the task type according to your purpose:

  • Command. Enter the full path to the executable file you want to start. This includes binary files, shell scripts and batch files.
  • Retrieve URL. You only need to specify the URL, so you don’t need to enter commands like “curl” or “wget”.
  • Execute PHP script. Enter the path to the script relative to your virtual host directory. You can click on the symbol to quickly find the script file.

Note: On Linux, all scheduled tasks of the “Execute command” category are executed in a chroot environment by default. In this case, the base directory of the system user of a subscription is treated as the file system root for the subscription and no executable files can be executed outside of chroot-Jail. If you see errors such as “The file was not found” while performing your scheduled tasks, you should try not to use absolute paths, but paths relative to the system user’s base directory. If it is also necessary for you to be able to execute executable files that are outside the chroot jail, you must contact our support.

Next, select how often you want the task to run and specify the desired date and time. The server time zone is used by default. If you want to select a different time zone, go to Websites & Domains > Scheduled Tasks > Settings. You can also specify a description for the task and configure notifications.

Finally, before you save the task, you have the option to perform a test run to make sure that the task is configured correctly. To do this, click Run Now and wait until the task is complete. If the task is completed with an error, it will not work even if the task scheduler executes it. So you should find out the problem first and solve it.

War dieser Artikel hilfreich?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Wie können wir diesen Artikel verbessern?
Please submit the reason for your vote so that we can improve the article.
Brauchst du Hilfe?
Related Post