Maintenance jobs

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
ljprevo
Posts: 3
Joined: Wed Oct 11, 2006 8:07 am

Maintenance jobs

Post by ljprevo »

We are getting

WARNING: TimeTrex maintenance jobs have not run in the last 48hours. Please contact your TimeTrex administrator immediately.

I assume that a cron needs to be set up.

What files need to be run, can't find any documentation on this.
mikeb
Posts: 709
Joined: Thu Jul 27, 2006 11:58 am

Re: Maintenance jobs

Post by mikeb »

ljprevo wrote:We are getting

WARNING: TimeTrex maintenance jobs have not run in the last 48hours. Please contact your TimeTrex administrator immediately.

I assume that a cron needs to be set up.

What files need to be run, can't find any documentation on this.
Yes, TimeTrex requires that jobs be run at regular intervals. At the end of the installer it explains how to setup cron. You can get these instructions again if you go to: /interface/install/Done.php
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
ljprevo
Posts: 3
Joined: Wed Oct 11, 2006 8:07 am

Post by ljprevo »

Did that it forces me to

/interface/install/License.php
mikeb
Posts: 709
Joined: Thu Jul 27, 2006 11:58 am

Post by mikeb »

ljprevo wrote:Did that it forces me to

/interface/install/License.php
If the installer isn't enabled it should tell you that, and once you enable it you should have no problem viewing Done.php. Nonetheless here is what it says:
In Linux simply add this line to your crontab. Be sure to replace "www-data" with the user your web server runs as.

* * * * * su www-data -c "php /var/www/html/timetrex/classes/modules/core/../../../maint/cron.php" > /dev/null 2>&1
Of course the paths are probably different on your system, so if you are having problems your best bet is to still go to Done.php, as it will give you the correct command.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
ljprevo
Posts: 3
Joined: Wed Oct 11, 2006 8:07 am

Post by ljprevo »

Thank you for your help.

I am on a windows machine and here was the instructions.


In Windows simply run this command as Administrator. Be sure that php-win.exe is in your path!

schtasks /create /tn "TimeTrex Scheduled Jobs" /tr " c:\wamp\php\php-win.exe C:\timeclock\classes\modules\core\..\..\..\maint\cron.php" /sc minute

Info on schtask is here.

http://www.microsoft.com/resources/docu ... x?mfr=true
Locked