Email Notification Options In Timesheet v5.5 |
Help Contents |
cron
settings. In all Unix environment installations of Timesheet, the actual crontab file was used to this end. Windows environment installations used a cron-like feature implemented by Journyx, the wtcron.jobs
file. While this method of performing automated reminders for late timesheets has not been removed from Timesheet v5.5, this method is very limited and is discussed below primarily for historical reasons.
wtcron.jobs
Functionalitywtcron.jobs
file should contain a line that looks like the following:
#13 latelog \python\python.exe \jwt\wtlib\latelog.pyc c:\jtime\jwt\doc\mailmsg admin@yourhost Monday 7
#
means that this line is a comment, so Timesheet will ignore this scheduled email reminder. To activate this email reminder, you will need to remove the leading #.
13
- Indicates the time that the cron email job is processed. Please note that this is in 0-23 hour format. Therefore, the 13 in this example equals 1:00 pm.
latelog
- The name that Timesheet uses to refer to this process. This should not be changed.
\python\python.exe
- Indicates to Timesheet the location of the installed
python modules. This too should never be changed.
\jwt\wtlib\latelog.pyc
- Indicates the name of the python file which is
to be run to generate the email report. Again, this potion should not be changed.
c:\jtime\jwt\doc\mailmsg
- Indicates the location of the file that contains the text that is used to generate the automated emails sent by wtcron.jobs. This file can be edited in any text editor to modify the contents of the automated emails.
admin@yourhost
- Indicates the "From" address that will be associated with all email messages sent via the wtcron.jobs process. This parameter can be changed to reflect an appropriate email address for your organization.
Monday
- Defines the day of the week that wtcron.jobs will send automated email notifications.
7
- Defines how many previous days Timesheet will use to determine which users should receive automated wtcron.jobs emails.
Please Note: wtcron.jobs
is a Tab Delimited text file. It is critical to the functionality of this file that the tabs separating the columns are not modified when making changes to this file.
After modifying wtcron.jobs
is changed, the jtime service must be restarted to
activate the changes.
Finally, for wtcron.jobs
emails to process, a valid SMTP server name must be entered in the Miscellaneous Options portion of Timesheet's Global Preferences.
cron
Functionalitycrontab -e
as the user who installed Journyx Timesheet to edit the actual cron entry.
This will automatically open an editor where they can edit a line which looks very similar to the NT line. The actual line in the crontab file should appear similar to the following:
13 13 * * 1 . /u/chris/s/jtest/pi/bin/setup;python
/u/chris/s/jtest/pi/apache/wtlib/latelog.pyc
/u/chris/s/jtest/doc/mailmsg admin@yourhost Monday 7
The individual components of this crontab entry correspond directly with those discussed above, under the Windows wtcron.jobs
section.
mailmsg
Contentsmailmsg
file referenced by both the Windows and unix environment implementations of <cron> functionality
is displayed below for reference purposes.
Subject: %Name%: Timesheet NotificationTime Record for: %Name%
Period Beginning: %BeginDate%
Period Ending: %EndDate%Time has not been entered for the referenced period. Please enter your time as soon as possible.
Thank you.