scott@uwav1.u.washington.edu (03/15/91)
Hello, Could anyone tell/send me a program that will do a reboot (i.e. CTRL-ALT-DEL) of the PC at regular intervals of time like once a day. The machine in question is being use as a gateway to the mainframe. But after certain period of time (like a day or two) it seems to loose connection. And when the machine is reboot, everything comes back to normal. So what I thought, as a quick solution is to have a program running in the machine that will reboot the machine every so often. And the gateway program can be called from the autoexec.bat. The rebooting program can be any simple program with a timer since the gateway program is a TSR. By the way, can one have two TSR programs running at the same time without conflict? Sincerely, Scott K. Stephen
ts@uwasa.fi (Timo Salmi) (03/16/91)
In article <1991Mar14.144740.1@uwav1.u.washington.edu> scott@uwav1.u.washington.edu writes: >Could anyone tell/send me a program that will do a reboot >(i.e. CTRL-ALT-DEL) of the PC at regular intervals of time like >once a day. The machine in question is being use as a gateway >to the mainframe. But after certain period of time (like a day or >two) it seems to loose connection. And when the machine is reboot, >everything comes back to normal. : Here is one idea. Take a look at garbo.uwasa.fi /pc/INDEX filelist, or Simtel20 simibm.arc filelist for utilities that call a program at a certain time (there should be several "ats"). Then get a reebooting program (eg warmboot.exe in /pc/ts/tsutld18.arc) and put that in the at call, and the at call in your autoexec.bat. ................................................................... Prof. Timo Salmi Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37 School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun
rdb@ktibv.uucp (Rob den Braasem) (03/18/91)
Hello How about a small program jumping directly to the boot address. This address is on all machines FFFF:0000. just make a small pascal or c program and include JMP FFFF:0000 This will do the trick. Happy Hacking "PABRAS" ----------------------------------------------------------------------------- | Rob den Braasem | "I die, | Voice : | | | when it's time for me to die | -31-79-531825 | | | so let me live my life, | Fax : | | "PABRAS" | the way I want to " | -31-79-513561 | | KTI bv | | Mail : | | P.O. Box 86 | J. Hendrix (When 6 was 9) | ....!hp4nl!ktibv!rdb | | 2700 AB Zoetermeer |------------------------------------------------------| | The Netherlands | Tomorrow never happens, it's all the same f$#@ day !!| -----------------------------------------------------------------------------
mikek@col.hp.com (Mike Karin) (03/19/91)
Here's a DEBUG script that will create BOOT.COM. BOOT.COM will do a warm boot <CTRL><ALT><DEL> on your machine. Copy the 12 lines below to a file (say BOOT.SCR) and then execute 'DEBUG < BOOT.SCR' to create BOOT.COM. ------------------------------------------------------ N BOOT.COM A 100 MOV BX,1234 These 12 lines MOV AX,0040 should be copied to MOV DS,AX BOOT.SCR MOV [0072],BX JMP FFFF:0000 (don't leave out this blank line!) RCX 11 W Q ------------------------------------------------------- Mike Karin Hewlett-Packard Co. Colorado Springs Division mikek@col.hp.com
alan@ukpoit.co.uk (Alan Barclay) (03/19/91)
In article <1991Mar18.081748.25848@ktibv.uucp> rdb@ktibv.uucp (Rob den Braasem) writes: > >Hello > > How about a small program jumping directly to the boot address. > This address is on all machines FFFF:0000. > > just make a small pascal or c program and include > > JMP FFFF:0000 > > This will do the trick. > I tried this: main(){ JMP FFFF:00000; } but it didn't work, is there an .h file I should include ?? :-)
mir@opera.chorus.fr (Adam Mirowski) (03/20/91)
%% > How about a small program jumping directly to the boot address. %% > This address is on all machines FFFF:0000. %% > just make a small pascal or c program and include %% > JMP FFFF:0000 %% > This will do the trick. %% %% I tried this: %% %% main(){ %% JMP FFFF:00000; %% %% } %% %% but it didn't work, is there an .h file I should include ?? :-) Try this one: #define FAR far #define JMP int FAR (* jump)() = (void FAR *) 0xFFFF0000; (*jump) (); Didn't try it on a PC, though. You could get a warning like 'Code has no effect' at compilation time. -- Adam Mirowski, mir@chorus.fr (FRANCE), tel. +33 (1) 30-64-82-00 or 74 Chorus systemes, 6, av.Gustave Eiffel, 78182 Saint-Quentin-en-Yvelines CEDEX