Creating Scheduled Tasks
On this page, you can view scheduled tasks of various system users, set the e-mail address for the scheduler output messages delivery, schedule new tasks and remove them.
The User drop-down box indicates the system user, whose scheduled tasks are currently displayed. It also allows to select another system user to view and/or manage scheduled tasks that belong to that user.
To enable scheduler to send notification to a specified e-mail address, select the required value in the Scheduler notification drop-down box, specify the e-mail address (if required), and click Set. All scheduled tasks from the displayed list that output some information will automatically have their output sent to the specified address.
Each line in the task list represents a single task. The Status (S) column shows whether the selected task is enabled or disabled (the disabled tasks are not executed). The Command or Description column displays the task description (if supplied by the user) or the command executed within the selected task, which also serves as a link to the page that allows editing the selected scheduled task properties. The Task priority indicates the priority set for the task.
To delete one or several scheduled tasks from the list, select the corresponding checkboxes and click Remove Selected.
To schedule a new task, follow these steps:
- Click the Add New Task icon. You will be taken to the scheduled task properties page.
- To activate the task, leave the Enabled checkbox selected. If you wish to temporarily disable the task, clear this checkbox. The disabled tasks are not executed.
- Provide a short description for the task, if desired. This description will be displayed in the list of all scheduled tasks and will serve as a link to the page that allows editing the task's properties. If no description is specified, the command executed within the task will be displayed.
- To enable scheduler to send the notification messages to a specified e-mail address, select the required value in the Scheduler notification drop-down box, and specify the e-mail address (if required). Any information output by the task will be automatically sent to the specified address.
- In the Path to executable file or script box, specify the absolute path to executable file or script. This file may be:
- A generic windows application,
- A PHP script (identified by the opening * a PHP, Perl or Python script (identified by the first line #!script interpreter name),
- A file with any of the following extensions: .BAT or .CMD (batch files), .VBS, .VBE, .JS, .JSE (visual basic or java scripts), .PL, .PM (perl scripts), .PY, .PYC (python scripts), .PHP, .PHP3 (php scripts).
The path to file may include the environment variables related to a user, on behalf of which the application or script is executed, therefore the users may specify the strings like %homedrive%%homepath%\application.name to run the applications or scripts residing in their home folders.
c:\Inetpub\vhosts\domain.com is a user's home folder. If user specifies
%homedrive%%homepath%\httpdocs\application.exe as the application to be executed, the application.exe file located in
c:\Inetpub\vhosts\domain.com\httpdocs\ will be run. (If you don't know the actual path for your site or pages you can directly contact us via sending an email to firstname.lastname@example.org.)
- 6. In the Arguments box, type in the arguments for the application or script to be run with.
- 7. In the Task priority box, define the priority for the task. High priority may be defined for executing critical tasks, Normal priority may be defined for the most general tasks, and Low priority may be defined for the tasks that require much time to complete.
- 8. Once you have set the schedule for this task, click OK to submit.
Want to read this in another language?