DOS boxes and task Scheduler

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

DOS boxes and task Scheduler

Post by bulek »

Hi,

In cacti installation guide there is a following note:
Note: If you do not want the annoying DOS boxes showing up on your screen, schedule the event using an NT service ID such as "cacti_service". Doing this will remove those messages from your screen during the execution of the scheduled event.
Can anyone elaborate on this? How exactly can I schedule cmd.php using "NT service ID"? I do it on Win2K.

Regards,
- bulek
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

To tell you the truth, I have no idea since I did not write that section of the documentation. It was contributed by another user.

It seems that win32 cacti users have had much better luck with wincron though. You can check out how to set that up here:

http://www.raxnet.net/board/viewtopic.php?t=565

Next time I update the win32 docs, I will make sure to include these wincron instructions.

-Ian
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Yea, I saw this hint before however I was looking for something free of charge :)

Anyway I overcame my problem by using Task Scheduler and nice tool called Hidden (http://www.savardsoftware.com/hidden/). It runs any application with hidden attribute which gives similar result as wincron.

- bulek
DaemQn
Posts: 3
Joined: Wed Dec 11, 2002 4:03 am

Post by DaemQn »

thanks for the info
its working great :) for me
DaemQn
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

You're welcome. This solution has one drawback (but I use it anyway). In task Scheduler you can set a limit for process execution time which can prevent overalping tasks. If you schedule hidden.exe it starts and exits imediatelly. Task Scheduler thinks the process already finished and your php task can work forever.

- bulek
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest