News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Wake on Lan
Author Message
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #1
Wake on Lan

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.



Attached File(s)
.lua File  wol.lua (Size: 2.67 KB / Downloads: 7)

This post was last modified: 04-19-2012 10:54 PM by jpjacobs.

04-19-2012 09:31 PM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #2
RE: Wake on Lan

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.

01-31-2013 06:17 AM
Find all posts by this user Quote this message in a reply
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #3
RE: Wake on Lan

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,

Jan-Pieter

01-31-2013 08:23 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: