Why Maintenance Job task don't run (screenshots)

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
blacksmith
Posts: 91
Joined: Mon Feb 11, 2008 6:57 am

Why Maintenance Job task don't run (screenshots)

Post by blacksmith »

As you always says (shaunw) that Maintenance Job are so critical for TimeTrex to work properly.

I have a problem with running the Maintenance Job. Its scheduled task don't run.

Here is a screenshot of the 7th step of installation.

Image

I copied the highlighted red command above, then opened the command prompt and pasted it. It asked about the administrator password, I entered it, and it run successfully as show in the screenshot

Image

When I open Scheduled Tasks folder, as shown in the screenshot below, TimeTrex Scheduled Jobs Never started and Could not start. Although this, the Last Result column shows 0x0.

Image

And according to Microsoft help from this link, this means that "The operation completed successfully".

Here is a screenshot of common codes for scheduled tasks from the above link:

Image

Thanks very much

TimeTrex Standard Edition v2.2.8
PHP 5.2.5
Windows XP Pro SP2
Apache 2.2.8
MySQL 5.0.51a
Firefox 2.0.0.14
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

You may need to add the full path to where php-win.exe is located.

So instead of just:

php-win.exe c:\server\htdocs....

It should be something like:

c:\php\php-win.exe c:\server\htdocs...
blacksmith
Posts: 91
Joined: Mon Feb 11, 2008 6:57 am

Maintenance Job scheduled task is work now

Post by blacksmith »

Thanks very much. Maintenance Job scheduled task is working now.

Image

Thanks again.
trojan
Posts: 29
Joined: Tue Jul 08, 2008 9:16 pm

Post by trojan »

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


What about in linux, what command should i run to make a manual maintenance?

Thanks in advance.... =)
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

It depends how you originally installed TimeTrex, but Step 7 of the installer will explain how to setup CRON properly.
Locked