Skip to main content
Home Forums 68kMLA Remotely shutdown a classic mac — #13
Post #13 by galgot
Source Forum68kMLA
CategorySoftware
Post DateThu, 30 Jul 2015 - 08:16
Original URLhttps://68kmla.org/bb/threads/remotely-shutdown-a-classic-mac.2437/
Post
Ok, Tried some things.

Thank you for pointing me to Cron Manager, excellent stuff.

I've set up a Ftp server on the OS 8 mac, using MacSSH, installed Cron Manager.

Any files named appropriately and placed into the "Cron Events Folder" in the System Folder will be launched.

So made a simple "do beep" applescript. make an alias and name "*1" (without quotes of course).

*1 means Cron Manager will open it every minutes, *60 would be every hours.

Got that "*1" alias to a OS X running Mac. From there connected via Ftp to the OS 8 Mac.

Uploaded the "*1" to the "Cron Events Folder"… And after a minute , Cron Manager opens… An empty text file named "*1" :D

Of course, when I upload the "*1" alias via ftp, it looses his Mac resource forks, and is seen as a text file...

Only way to upload it and keeping these resources is to make it a .sit file.

So made a stuffit archive of a restart applescript also named "*1 .sit" (note the space after 1, I don't think this is necessary…), then uploaded it back into "Cron Events Folder" via ftp. After a minute, it unstuffed the archive and launched the resulting "*1" restart script. So it works :)

You can launch almost any script remotely like that. The caveat is that it as to be with some more delays than 1 minute, otherwise you end up with xx "*1" files in the "Cron Events Folder" :D After restart , it unstuffed again "*1 .sit" and again launched the script, so I had to be fast emptying the "Cron Events Folder" .

I think best is to make a file called "*10", so to have 10 minutes of delay, and be able to ftp into the "Cron Events Folder" to delete the files if you need.

Or maybe there is a way to make the script so that it delete any .sit files and move itself out in the "Cron Events Folder" ?...

mp.ls