Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hilli/wakeonlan
Pure ruby wake on lan client and library
https://github.com/hilli/wakeonlan
Last synced: about 13 hours ago
JSON representation
Pure ruby wake on lan client and library
- Host: GitHub
- URL: https://github.com/hilli/wakeonlan
- Owner: hilli
- Created: 2015-01-07T12:05:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-11T07:39:20.000Z (about 9 years ago)
- Last Synced: 2023-03-10T20:47:31.890Z (over 1 year ago)
- Language: Ruby
- Size: 125 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: CHANGELOG
Awesome Lists containing this project
README
= Wake On LAN
* http://wakeonlan.rubyforge.com/
* mailto:[email protected]== Description
Wake On LAN library and system executable
== Prerequisites
Ruby 1.8.6 or later
== Installation
You can use RubyGems [rubyforge.org/projects/rubygems] to install the latest version of the WakeOnLAN library remotely.
gem install --remote wakeonlan
== Usage
require 'wakeonlan'
wol = WakeOnLan.new
wol.wake("00:14:5e:2a:1c:f7") # Send magic packet to the machine with the MAC address 00:14:5e:2a:1c:f7
wol.closeor just simply:
WakeOnLan.wake!("00:14:5e:2a:1c:f7")
or
WakeOnLan.wake!("my-sleepy-host")
if you have a /etc/ethers file. See `man 5 ethers` on a UNIX/BSD/Linux system
== LICENSE
WakeOnLAN library is Copyright (c) 2009 by Jens Hilligsoe. It is free software. Redistribution is permitted under the same terms and conditions as the standard Ruby distribution. See the COPYING file in the Ruby distribution for details.