One option would be to use the Java library from the wakeonlan
project, by Steffen Moldaner. To make things easy, use the
JavaLoader.cfc from Mark Mandel. Once you've placed a copy of
wakeonlan.jar and JavaLoader.cfc into a test directory, use a chunk
of CFML file like so:
<cfscript>
wakeUp = "00:E0:81:02:10:7C";
paths = listToArray(expandPath("wakeonlan.jar"));
loader = createObject("component", "JavaLoader").init(paths);
ea = loader.create("wol.configuration.EthernetAddress").init(wakeUp);
wu = loader.create("wol.WakeUpUtil");
wu.wakeup(ea);
</cfscript>
Obviously, this would only allow your server to send a magic packet
to a machine on it's local Ethernet. In my testing, I was able to see
the incoming UDP packet on port 9 appear at my destination machine.
At another destination, it did indeed wake a slumbering computer.
JavaLoader.cfc:
http://www.compoundtheory.com/?action=displayPost&ID=117
wakeonlan:
http://www.moldaner.de/wakeonlan/
--
Joseph Lamoree
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249800
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4