WakeOnLan/Java commands on Mac OS 9

T

ToasterKing

Hi there.

I'd like to wake up several PCs via Ethernet from a Macintosh running
Mac OS 9.1 using Wake-On-Lan (WoL) magic packets. Unfortunately, I
haven't been able to find any software which runs on Mac OS 9 (or
Carbon) which will do this. I have found a Java implementation of
Wake-On-Lan on http://www.sourceforge.net which I would like to try,
but it requires to be invoked using a command line. How, in Mac OS 9,
can I execute the equivalent of a command like

java -jar wakeonlan.jar -i 192.168.0.255 00:50:95:10:95:F5

The Apple Applet Runner that comes with Mac OS Runtime for Java will
only directly open HTML files. Thanks for any tips.
 
T

Tom Stiller

ToasterKing said:
Hi there.

I'd like to wake up several PCs via Ethernet from a Macintosh running
Mac OS 9.1 using Wake-On-Lan (WoL) magic packets. Unfortunately, I
haven't been able to find any software which runs on Mac OS 9 (or
Carbon) which will do this. I have found a Java implementation of
Wake-On-Lan on http://www.sourceforge.net which I would like to try,
but it requires to be invoked using a command line. How, in Mac OS 9,
can I execute the equivalent of a command like

java -jar wakeonlan.jar -i 192.168.0.255 00:50:95:10:95:F5

The Apple Applet Runner that comes with Mac OS Runtime for Java will
only directly open HTML files. Thanks for any tips.

I can't speak to the Java issue, but the Macintosh Programmer's
Workbench (MPW) contains a shell which can issue commands with line
arguments. For what's worth, it can also compile and run a simple
application to do the WOL job. There's also MacPerl, but I prefer
issuing WOL commands via MPW on my old Q630 running MacOS 7.6.1.
 
T

ToasterKing

Tom said:
I can't speak to the Java issue, but the Macintosh Programmer's
Workbench (MPW) contains a shell which can issue commands with line
arguments. For what's worth, it can also compile and run a simple
application to do the WOL job. There's also MacPerl, but I prefer
issuing WOL commands via MPW on my old Q630 running MacOS 7.6.1.

Thanks, Tom, for the information. If I manage to locate a copy of MPW,
I'll give it a shot. It's nice to know you're still putting an old
Quadra to good use. They don't make 'em like that anymore! BTW, how
stable is 7.6.1 on the Q630? I had more stability problems on my P575
and Q700 with System 7.5.5 and Mac OS 8.0/8.1 than I should have, but
it was probably that I was using semi-modern software written by
programmers who aren't very concerned about testing on 68K machines
anymore.

Thanks,
TK
 
T

Tom Stiller

ToasterKing said:
Thanks, Tom, for the information. If I manage to locate a copy of MPW,
I'll give it a shot. It's nice to know you're still putting an old
Quadra to good use. They don't make 'em like that anymore! BTW, how
stable is 7.6.1 on the Q630? I had more stability problems on my P575
and Q700 with System 7.5.5 and Mac OS 8.0/8.1 than I should have, but
it was probably that I was using semi-modern software written by
programmers who aren't very concerned about testing on 68K machines
anymore.

You may still be able to get the MPW from the Apple Develpoer's site
<http://developer.apple.com/>. You may have to join the Developer
Group, but there is no cost.

I find 7.6.1 to be more stable than 7.5.x was. I never tried 8.x on
the Q630 because the LaserWriter drivers that shipped with it were
incompatible with some of the software that I used regularly. I do see
some of the same problems with newer software but, since my main
machine is an iMac running Jaguar, it's not an inconvenience.
 
T

ToasterKing

Tom said:
You may still be able to get the MPW from the Apple Develpoer's site
<http://developer.apple.com/>. You may have to join the Developer
Group, but there is no cost.

Thanks Tom. I was able to download and install MPW. FYI, all I did
was search ADC for "MPW" and found the installer. Apple does keep
their knowledgebase and support areas so much simpler and easier to
search than M$ does. Now I just need to set aside some time to learn
how to use MRJ from the command shell.
 
T

Thomas Engelmeier

ToasterKing said:
Now I just need to set aside some time to learn
how to use MRJ from the command shell.

You just need to install the (MRJ SDK) MPW tools and just can type java
<commandlineoptions>
 
T

ToasterKing

Thomas said:
You just need to install the (MRJ SDK) MPW tools and just can type java
<commandlineoptions>

Thanks a lot -- what a simple answer! I'll let you know how it works
out.
 
T

ToasterKing

Thomas said:
You just need to install the (MRJ SDK) MPW tools and just can type java
<commandlineoptions>

Thanks a lot -- I can execute commands in MPW passed to Java classes
now. The only problem is that whenever I try to run this Java applet
(wakeonlan.jar), MPW Shell unexpectedly quits with a type 2 error
(address error). Without an error, I'm not really sure what's wrong.
Since you have experience using MRJ in MPW, maybe you're familiar with
this problem? I know that Java/MRJ is not really fault-tolerant and as
such the cause could be most anything, but maybe you have some leads?

Thanks,
TK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top