Murga-Projects Forums
Wake on Lan - Printable Version

+- Murga-Projects Forums (
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Wake on Lan (/showthread.php?tid=419)

Wake on Lan - jpjacobs - 04-19-2012 09:31 PM

I just wrote a Wake on Lan script, and thought I might share it.

It's a simple script using LuaSocket to send a magic packet to a computer to wake it up over the network.

Usage is like:

murgaLua wol.lua -i <broadcast IP address> (one or more MAC addresses, or identifiers)

identifiers are defined in a table in the script in the table "targets". they start by @ and are followed by a number of characters (the set matched by %w).

Feel free if you want to adapt it, or write a GUI frontend.

RE: Wake on Lan - mikshaw - 01-31-2013 06:17 AM

I've never had a desire for wake-on-lan yet, but i do like this script. I particularly like the checkIPv4() function. If you don't mind, i would like to stash it into my collection of code chunks for future use/reference.

RE: Wake on Lan - jpjacobs - 01-31-2013 08:23 AM

Sure, if I meant it to proprietary, I wouldn't share it Wink.
I'm glad the few hours I spent writing it weren't useless after all. (After writing this, I discovered my PC can't use wake on LAN Wink).

Kind regards,