| Subject | : | Reboot OS2 Task Scheduler |
| Author | : | Tom |
| Date | : | 31 May, 2006 on 14:08 |
| 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, |
| Subject | : | Re:Reboot OS2 Task Scheduler |
| Author | : | warpcafe warpcafe@yahoo.de |
| Date | : | 31 May, 2006 on 15:30 |
Hi Tom,
well, if it's eCS there's the task scheduler that comes along with it - I haven't checked whether it suits your needs but it might be worth checking. Greetings |
| Subject | : | Re:Reboot OS2 Task Scheduler |
| Author | : | Fahrvenugen |
| Date | : | 31 May, 2006 on 18:39 |
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 */ 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. |
| Subject | : | Re:Reboot OS2 Task Scheduler |
| Author | : | Tom |
| Date | : | 01 Jun, 2006 on 17:15 |
| ou guys are awesome. I got the schedule tool to work, in the past I must have been using the wrong syntax. Another quick question, The Voice Mail application is Repartee Active Voice. Is there a way that I can gracefully shut down the application or kill its process? Typically if its not froze, I have to log into it to shut it down. Thanks again, |
| Subject | : | Re:Reboot OS2 Task Scheduler |
| Author | : | warpcafe warpcafe@yahoo.de |
| Date | : | 01 Jun, 2006 on 17:50 |
Hi Tom, Greetings |
| Subject | : | Re:Reboot OS2 Task Scheduler |
| Author | : | RobertM |
| Date | : | 04 Jun, 2006 on 19:03 |
| You might want to try using one of the shutdown/kill/close tools like C-A-D and find what utility it uses to send a PM Close to an app and call that first, or write a REXX script that sends a PM Close to the app itself. Assuming there is no confirmation dialog that gets generated by the app, it should work. Alternatively, if there is a confirmation dialog, there are REXX tools on Hobbes that could be used in conjunction with that script to assign focus to the app, send it the proper close sequence (of keystrokes) and then assign the confirmation window the appropriate close keystroke sequence as well. Hope that helps, |