last updated at 31 May, 2006 18:46 (3 times)
Tom (31 May, 2006 14:0
:
Hi I have an OS2 Voice Mail system that runs out of resources about every 3 days and the company is too cheap to replace it. Currently, I reboot the system manually via telnet executing the SETBOOT /IBD:C: command.Is there a effective task scheduler that will execute this command say 3 AM every day? I've searched the forum http://ftp-os2.nmsu.edu/cgi-bin/h-browse?sh=1&dir=/pub/os2/util/schedule and still could not find a suitable task scheduler or batch operation.
Thanks,
Tom
It is interesting that it is running out of resources... I've seen OS/2 based voice mail systems which run for years without needing reboot. There must be something with a memory leak on your system. Anyways... back to the question.
Have you tried:
http://ftp-os2.nmsu.edu/pub/os2/util/schedule/schedule.zip
I've used it a few times and find it works quite well and is easy to use.
You may have to create a short "restart.cmd" file (or name it something like that) to get things to work. This may be the difficulty - one time when I tried to set up a scheduler it wouldn't work when I called a program directly, but when I called a .CMD file which called the program, everything worked like a charm.
Something like:
/* Reboots PC when called */
SETBOOT /IBD:C:
Save that to a file
Unzip schedule.zip to its own directory (something like c:\schedule)
Start up schedule.exe when you get the message about "timexec.exe isn't in the startup", I always hit cancel myself (I prefer to make my own changes to startup.cmd, furthermore the program doesn't add the full path to timexec.exe into the startup.cmd file, so its add feature often doesn't work unless you fix the startup.cmd file anyways).
Set the frequency and time you want the task to run (put in at a minimum the frequency (daily), hour (3) and minutes (0) , for the "Command" line chose your restart.cmd file (use the full path of wherever you put this file). Then click on "Add" and then "Save", then OK. (this example will run the command at 3 am every day)
Then edit your c:\startup.cmd file and add the following:
start c:\schedule\timexec.exe
(or whatever directory you've chosen)
If you want to start this up without having to reboot, just run the timexec.exe from a command prompt. At 3 am it should run the "restart.cmd" which should make it reboot.
Or if you want to test and see if it works properly, pick another time when you'll be there to watch the machine. you can always reschedule it later.
I hope this helps. I've never had any difficulty with that little package.