CE Software's QuicKeys and QuickTimer CDEVs should provide the solution.
QuickTimer can run a QuicKeys sequence called "Daily" at a specified time
every day, or run a sequence called "Periodic" at regular intervals. From
Finder or MultiFinder, define a QuicKeys sequence that does a Restart, and
name it "Daily". The sequence needs a keyboard equivalent to be called by
QuickTimer. Set the time you want the "Daily" sequence to be run, and
restart the computer. The system should restart every day at the time
specified in QuickTimer.
If the Macintosh Systems are AppleShare File Servers
----------------------------------------------------
In this case, the setup is a little more complicated. There are six steps:
patch the AppleShare file server software (please note that this patch is an
unsupported solution), define four QuicKeys sequences, and use the Control
Panel to choose a time.
Note: It's not necessary to patch AppleShare if the file server is a
Macintosh IIcx or Macintosh IIci, because you can lock the power switch in
the ON position on these systems. With the power switch locked in the ON
position, the Macintosh IIcx and Macintosh IIci automatically restart after
the Shut Down command is issued. This is not possible with Macintosh II and
Macintosh IIx, because their power switches don't lock in the ON position.
Step A
------
When Shut Down... is selected from the Server menu, the AppleShare file
server closes all open files, writes information in the disk cache to disk,
and shuts down the system. You need to patch the AppleShare file server
software to just Restart instead of Shut Down.
The Shutdown Manager procedure is called ShutDwnPower, and it turns the
computer off. If the Macintosh must be turned off manually (for example, a
Macintosh SE), the Shutdown alert is presented to the user.
Disassembled, ShutDwnPower looks like this:
MOVE.W #1,-(SP) ;1 is the selector for the "ShutDwnPower" proc
_Shutdown
and in hexadecimal:
3F3C 0001 A895.
You need to have AppleShare call ShutDwnStart (the Shutdown Manager) instead
of ShutDwnPower. ShutDwnStart restarts the system instead of turning it
off.
Disassembled, ShutDwnStart looks like this:
MOVE.W #2,-(SP) ;2 is the selector for the "ShutDwnStart" proc
_Shutdown
and in hexadecimal:
3F3C 0002 A895.
Here's how to use ResEdit to make this change:
1) In ResEdit, open the application AppleShare File Srv (in the "Server
Folder").
2) Open the CODE resources, find the 2 "Main" ID = 1 resource, and open
it.
3) Select Find Offset... from ResEdit's Find menu.
4) Enter an offset of "512D" (a hexadecimal number).
5) "01" is highlighted in the CODE "Main" ID = 1 window. Type "02".
6) Select Save from ResEdit's File menu, and quit.
Here's how to apply the same patch using a file editor such as FEdit:
1) Use the file editor to open the application named AppleShare File Srv.
2) Search for the hexadecimal string "3F3C 0001 A895" (this occurs only once).
3) Replace the string with "3F3C 0002 A895".
4) Save the changes.
Now, the AppleShare file server will restart instead of shutting down when
Shut Down... is selected from the Server menu.
(For more information on the Shutdown Manager, see pages 585 to 590 of Inside
Macintosh Volume V.)
Step B
------
Define a QuicKeys sequence that issues a Shut Down command:
1) With the AppleShare file server running, select QuicKeys from the Control
Panel.
2) From the QuicKeys CDEV's Define menu, select Menu/DA....
3) From AppleShare's Server menu, select Shut Down.
4) Give this QuicKeys sequence a unique keyboard equivalent, perhaps
Shift-Control-A.
Step C
------
Define a QuicKeys sequence that enters the "Number of minutes until
shutdown" into the time delay dialog:
1) From the QuicKeys CDEV's Define menu, select Text....
2) Type the number of minutes you want the AppleShare file server to delay
before shutting down.
3) Give this QuicKeys sequence a unique keyboard equivalent, such as
Shift-Control-B.
Step D
------
Define a QuicKeys sequence that selects the OK button in the dialog:
1) From the QuicKeys CDEV's Define menu, select Buttons...
2) When a dialog asks you to "Enter button to look for", type "OK" and click on
the OK button.
3) Give this QuicKeys sequence a unique keyboard equivalent, such as
Shift-Control-C.
Step E
------
Define a QuicKeys sequence that links all the above sequences:
1) From the QuicKeys CDEV's Define menu, select Sequences...
2) A dialog appears; on its right side are the three QuicKeys you already
defined. On the left side is the default name "List". Change that name
to "Daily".
3) Double-click the QuicKeys on the right side of the dialog in this order:
- Shift-Control-A Shut Down...
- Shift-Control-B '5'
- Shift-Control-C OK
4) Click the "OK" button.
5) Give the "Daily" sequence a keyboard equivalent.
6) In the Control Panel, select the QuickTimer CDEV.
7) Click the word "Daily" so that the check box is selected, and set the
time.
Step F
------
1) From the Control Panel, Select the QuickTimer CDEV.
2) Click on the word "Daily", so that the check box is selected.
3) Set the time to, say, 4:30 am.
The AppleShare file server will now shut down and restart every day at the
defined time.