jpoliv / wakeonlan Goto Github PK
View Code? Open in Web Editor NEWPerl script for waking up computers via Wake-On-LAN magic packets
Perl script for waking up computers via Wake-On-LAN magic packets
It would be nice if we could specify a hostname in place of the MAC address argument, and for wakeonlan
to attempt to look this up via nss/nsswitch/the ethers db (e.g. /etc/ethers
).
Note that this would be to resolve a hostname to a MAC address, not to specify an IP for the WOL packet.
Examples
$ getent ethers coil
e0:4f:43:e6:2b:36 coil
$ wakeonlan $(getent ethers coil | awk '{ print $1 }')
Sending magic packet to 255.255.255.255:9 with e0:4f:43:e6:2b:36
getent(1)
implies that the libc function to do this correctly is ether_hostton
.
Hi there,
Thanks for sharing this amazing tool. Is there a supported way to send "turn off" commands to a MAC address using this or any other tool that you know of?
Thank you,
Tony
Is there a plan to release an RPM installer and perhaps include it in the mainstream repo's?
Thanks.
In 0.42 version of wakeonlan, when trying to input my DNS name as the ip_address argument, it returns :
Invalid default IP address: (name of my DNS address).
With the same parameters on wakeonlan 0.41, it works like a charm instead. What changed? It seems that now ip_address argument only accepts digits.
After installation with Software Manager it will not Launch and can not be found in the Application list.
When I attempt to use my server's public IPv6 ip address as an option for the script, I get the following error:
Use of uninitialized value in subroutine entry at /usr/local/bin/wakeonlan line 75.
Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/bin/wakeonlan line 75.
It looks as though using the IPv6 ip is not supported by the script at this time. Is that a feature that needs to be added, or am I using the script incorrectly?
Note: The script works correctly when using no ip_address argument or my local ip address
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.