68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
Scheduled Reboot Restart Cron for System 6 and 7?
Posted by: Admiral Ackbar on 2024-02-23 07:43:50
Hi all. Looking for something that can make Mac Plus (and also PB 180 bw) restart every few hours. System 6.0.8 and 7 using a scheduler agenda timetable.


I put in all of the title terms in a search here, didn't find anything, so asking here directly. 🙂

Thanks.
Posted by: MacKilRoy on 2024-02-23 07:52:13
In the old days I used a HyperCard stack that ran in the background as an application. I didn’t (and still don’t) know any other way to do it.

Servers in the early 90s were not “reliable” and often benefited from a restart. So it would trigger one at a set time (usually midnight) but sometimes 4am.

This would work in system 7 but I don’t think system 6.
Posted by: Admiral Ackbar on 2024-02-23 08:44:05
In the old days I used a HyperCard stack that ran in the background as an application. I didn’t (and still don’t) know any other way to do it.
[snip]
Interesting. My plan is to have a full-screen HyperCard stack running in the foreground displaying some info it gets from a network share (using the magic of AirTalk). If I could get the display and restart to all be HyperCard based, that'd be fine with me.
Posted by: Powerbase on 2024-02-23 10:16:14
When in doubt, use Hypercard. It'll probably need an external for restarting though. I don't Hypercard could do that on its own.
Posted by: LaPorta on 2024-02-23 10:31:53
Why not use HyperCard and an AppleScript in it that does something like “tell application Finder restart” or some such at a certain time.
Posted by: MacKilRoy on 2024-02-23 11:03:53
Why not use HyperCard and an AppleScript in it that does something like “tell application Finder restart” or some such at a certain time.
^^ This

I had a Hypercard stack script that monitored the time for being after the next triggered event.

Something like:
if the seconds > nextRestartTime then
tell application finder Restart
end if

Then, when the stack is opened, using on OpenStack I would insert new restart time by taking current time and adding the next increment, like 86400 (which is 24 hours)

Not exact, this won't work, but should guide you. It's been a few minutes since I did this.
Posted by: LaPorta on 2024-02-23 17:00:17
Thank you for articulating the above in computer-speak.
Posted by: mikes-macs on 2024-04-01 22:03:13
Maybe this would help for System 7. It looks though that it is not compatible with System 6.

Posted by: Admiral Ackbar on 2024-04-04 21:02:02
Maybe this would help for System 7. It looks though that it is not compatible with System 6.

That is great, thanks, I can try that on my PB180 since that has '7. Strange that this is so hard for System 6.
1