Tom Lokhorst's blog

Writings from a happy Haskell coder.

wol: Send a Wake on LAN Magic Packet

The wol program sends a Wake on LAN magic packet to a specified computer. If the machine (and router in between) is configured correctly, the machine will start up!

Usage

The executable can be used as such:

$ wol mymachine.example.com 00:1a:92:59:97:2f

Installing wol

The current version of wol is 0.1.0 and is available on Hackage.

If you have cabal-install (which you really should have, by the way), the package can be installed like so:

cabal update
cabal install wol

If you don’t have cabal-install, you can manually download and install wol:

wget http://hackage.haskell.org/packages/archive/wol/0.1.0/wol-0.1.0.tar.gz
tar xzf wol-0.1.0.tgz
cd wol-0.1.0
runhaskell Setup.hs configure --user
runhaskell Setup.hs build
runhaskell Setup.hs install

Leave a Reply