Copyright © 2000 Morgan N. Sandquist
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
Kcron is an application that schedules programs to be run.
Table of Contents
Don't forget to tell your system to start the crond cron daemon first, or Kcron won't work.
When Kcron starts you will see a summarized view of existing scheduled tasks and associated environment variables. If you are running as the root user, you will see these items for all users on the computer as well as the system scheduled tasks. Each of the folders can be expanded and contracted.
Scheduled tasks appear under a Tasks folder. For each scheduled task, the following are displayed:
Name to identify the scheduled task.
Program file and parameters.
Natural language description of scheduled task.
If a task has been disabled, no program file and parameters will appear, and the description will be disabled.
Environment variables appear under a Variables folder. For each environment variable, the following are displayed:
Variable name.
Variable value.
Natural language description of variable.
Environment variables appearing here will override any existing environment variable for all scheduled tasks. If an environment variable has been disabled, no value will appear and the description will be disabled.
To create a new scheduled task, first select the Tasks folder. Then select Edit->New.... Alternatively, you can use the right mouse button menu and choose New..., or simply press Ctrl+N.
Enter a description of the task to schedule.
Enter the name of the program. You can specify either a relative path or absolute path. If you want to look up the program, press Browse....
To enable or disable the task, select or de-select Enabled.
Turns off logging of the command and the output from the command.
Select the months during which the task is to be scheduled.
Select the days of the month on which the task is to be scheduled.
Select the days of the week on which the task is to be scheduled.
If you want to schedule the task to run daily, select Run Every Day.
Select the hours on which the task is to be sheduled.
Select the minute at which the task is to be scheduled. Kcron does not support scheduling tasks at smaller than five minute intervals.
Completes the creation of this task.
Cancels the creation of this task.
If you select both days of the month, and days of the week, the task will run when either condition is met. For instance, if you select the 1st and 15th, and select Sunday, the program will be run every 1st and 15th of the selected months (regardless of day of week) as well as every Sunday of the selected months (regardless of day of the month).
The scheduled task is not actually set up until the crontab has been saved.
As with creating new tasks, changes to tasks will not actually be made until the crontab is saved.
To cut a scheduled task, first select the task to be cut. Then select Edit->Cut.
Alternatively, you can use the right mouse button menu and choose Cut, or simply press Ctrl+X.
To copy a scheduled task, first select the task to be copied. Then select Edit->Copy .
Alternatively, you can use the right mouse button menu and choose Copy, or simply press Ctrl+C.
To paste a scheduled task, first a scheduled task must have already been cut or copied to the clipboard. Once a scheduled task has been cut or copied, paste will be enabled. Then select the Tasks folder. Finally, select Edit->Paste.
Alternatively, you can use the right mouse button menu and choose Paste, or simply press Ctrl+V.
To modify a scheduled task, first select the task to be modified. Then select Edit->Modify....
Alternatively, you can use the right mouse button menu and choose Modify..., or simply press Ctrl+O. You will see the Edit Task dialog, which you would modify as described above.
To delete a scheduled task, first select the task to be deleted. Then select Edit->Delete.
Alternatively, you can use the right mouse button menu and choose Delete.
To enable or diabled a scheduled task, first select the disabled task. Disabled tasks will have Disabled in their descriptions. Then select Edit->Enabled.
Alternatively, you can use the right mouse button menu and choose Enabled. Confirm that the scheduled task's program name, parameters, and description are correctly displayed.
To create a new environment variable, first select the Variables folder. Then select Edit->New....
Alternatively, you can use the right mouse button menu and choose New..., or simply press Ctrl+N.
Enter the environment variable name. You can use the drop-down list box to select from the most common environment variables used by scheduled tasks. Those include:
To be used instead of the default user's home directory.
To send email output to an email address other than the user's default email address.
To be used to search directories for program files.
To be used instead of the user's default value.
Enter the environment variable value.
Enter a description for the environment variable, such as its purpose.
To enable or disable the variable, select or de-select Enabled.
Completes the setting of this variable.
Cancels the setting of this variable.
The environment variable is not actually set up until the crontab has been saved.
As with creating new variables, changes to variables will not actually be made until the crontab is saved.
To cut an environment variable, first select the variable to be cut. Then select Edit->Cut.
Alternatively, you can use the right mouse button menu and choose Cut, or simply press Ctrl+X.
To copy an environemnt variable, first select the variable to be copied. Then select Edit->Copy.
Alternatively, you can use the right mouse button menu and choose Copy, or simply press Ctrl+C.
To paste an environment variable, first an environment variable must have already been cut or copied to the clipboard. Once an environment variable has been cut or copied, paste will be enabled. Then select the Variables folder. Finally, select Edit->Paste.
Alternatively, you can use the right mouse button menu and choose Paste, or simply press Ctrl+V.
To modify an environment variable, first select the variable to be modified. Then select Edit->Modify.... Alternatively, you can use the right mouse button menu and choose Modify..., or simply press Ctrl+O. You will see the Edit Variable dialog, which you would modify as described above.
To delete an environment variable, first select the variable to be deleted. Then select Edit->Delete
Alternatively, you can use the right mouse button menu and choose Delete.
To enable or diabled an environment variable, first select the disabled variable. Disabled variables will have Disabled in their descriptions. Then select Edit->Enabled.
Alternatively, you can use the right mouse button menu and choose Enabled. Confirm that the environment variable's name and value are correctly displayed.
To print the crontab as it has been saved, select File->Print.
The standard KDE printer dialog will display. If you select Expand you will see that there are two extra Kcron specific options in the Print Dialog box.
Prints the crontab for the current user.
Prints the crontabs for all users. This option is enabled only for users with super-user privileges.
Saves changes to the crontab.
Prints the crontab.
Quits Kcron.
Cut the selected task or variable.
Copy the selected task or variable.
Paste a task or variable that has been cut or copied.
Create a new task or variable.
Modify the selected task or variable.
Delete the selected task or variable.
Enable/disable the selected task or variable.
Run the selected task now.
Invokes the KDE Help system starting at the Kcron help pages. (this document).
Changes the mouse cursor to a combination arrow and question mark. Clicking on items within Kcron will open a help window (if one exists for the particular item) explaining the item's function.
Opens the Bug report dialog where you can report a bug or request a “wishlist” feature.
This will display version and author information.
This displays the KDE version and other basic information.
4.1. | Why aren't the changes I'm making to scheduled tasks and/or environment variables taking effect? |
Additions or changes to scheduled tasks do not actually happen until the crontab has been saved. |
Kcron
Program copyright 2000 Gary Meyer <gary@meyer.net>
Documentation copyright 2000 Morgan N. Sandquist <morgan@pipeline.com>
This documentation is licensed under the terms of the GNU Free Documentation License.
This program is licensed under the terms of the GNU General Public License.
Kcron is part of the KDE project http://www.kde.org/.
Kcron can be found in the kdeadmin package on ftp://ftp.kde.org/pub/kde/, the main FTP site of the KDE project.
In order to successfully compile Kcron, you need the following libraries:
cron, such as vixie-cron. Kcron uses the crontab command to modify user's scheduled tasks.
POSIX-compliant UNIX®, such as provided by glibc. Kcron uses some standard UNIX® system calls for localization of dates and times
In order to compile and install Kcron on your system, type the following in the base directory of the Kcron distribution:
% ./configure % make % make install
Since Kcron uses autoconf and automake you should have no trouble compiling it. Should you run into problems please report them to the KDE mailing lists.