3 releases (stable)

1.0.1 Sep 13, 2020
0.1.0 Sep 13, 2020

#1857 in Command line utilities

45 downloads per month

Custom license

6KB
116 lines

Hatty

A little wake-on-lan utility.

Usage

> hatty  --mac 18-C0-4D-42-2D-EA
sent
> echo $?
0

> hatty --mac 18-C0-4D-42-2D-EA --to 192.168.0.101
sent
> echo $?
0

> hatty --mac 18-C0-4D-42-2D-XX
error
> echo $?
1

Debugging

> sudo netcat -ul 9
> cargo run -- --mac 18-C0-4D-42-2D-EA --to 127.0.0.1

Then you should see something from netcat.

The Name

wake-on-lan -> wol -> wooly -> wooly bully -> HATTY TOLD MATTY

Sam the Sham and the Pharaohs

Resources & Inspiration

Thanks to Jacob Rothstein for coaching me through this!

Dependencies

~2.5MB
~48K SLoC