|
|
 |  |
Re: getting macsbug to restart computer after freeze?From: Men & Mice Support Date: Tuesday, May 7, 2002
Time: 4:44:52 pmAt 3:30 PM -0400 5/7/02, andrew wrote:
>Hi All: Back in September last year someone posted instructions on
>how to alter
>MacsBug to dump a log and restart the computer after QuickDNS froze.
>
>Could someone repost that info?
>
>TIA, Andrew
You can define macros in MacsBug with ResEdit. Macros with special
names get run when certain criteria are met.
Here's how to create an auto-log, auto-reboot macro:
- Make sure you have the latest version of MacsBug.
- Launch ResEdit.
- Open a copy of MacsBug in ResEdit.
- Double-click on the mxbm resource.
- From the Resource menu, select Create New Resource.
- Select the item named "1) *****".
- From the Resource menu, select Add New Field(s).
- In the Macro Name field, type "FirstTime" (without the quotes).
- Set the Expansion field to "g" (again, sans quotes).
- Repeat the last four steps (selecting item 2) to create a macro
named "EveryTime" that expands to "stdlog;rb".
You now have a pair of macros, plus an item 3 that has no fields.
- Close the window.
- From the Resource menu, select Get Resource Info.
- Click into the Name field and type "Autodump", or any other
descriptive name you prefer.
- Close the window.
- Save MacsBug.
- Quit ResEdit.
- Install the newly modified version of MacsBug in your System Folder
and restart.
What it does:
The EveryTime macro, by default, is run every time MacsBug is
invoked, including when it first loads (during system startup).
However, if there is a FirstTime macro installed, FirstTime will be
run at system startup instead of EveryTime.
The FirstTime macro defined above simply exits MacsBug and returns
operation to the system. This lets the system continue to boot. You
may see a brief flash of a MacsBug interface during system boot, but
otherwise things will work normally.
The EveryTime macro is written with the assumption that, if MacsBug
has been invoked, then the system has crashed. It does two things.
First, it saves a stdlog to the desktop. Second, it reboots the
system (as happens with cmd-ctrl-pwr).
Note that, if you invoke MacsBug manually (type cmd-pwr or hit the
programmer's button on the front of many Macs), it'll run the
EveryTime macro and reboot.
____________________________________________________________________
Chris Buxton Men & Mice
support@menandmice.com Making DNS Easy
Visit the Men & Mice booth (#2525) at NetWorld+Interop in Las Vegas, Nevada,
May 7-9. http://www.key3media.com/interop/lv2002/index.php
|

Return to Digital Point Solutions' Home Page |