Wake on LAN using no special programs (handmade)?
Hello, Friends:
I am trying to build a Wake on LAN packet "manually", this is: whithout any tool intended for that. Or, at least, using the most simple method possible. Purpose: sometimes I am managing a computer or a device (router, for example) with Linux inside, but with few chances to install my preferred programs, and I wanna wake up another computer on the same LAN. So, as the Magic Packet is has an easy syntax, I am wondering using something simpler, something like: Code:
echo [MagicPacketForSpecificMAC] | /dev/eth0 I have checked the Wake on LAN's Magic Packet specifications (Wikipedia): Quote:
Thanks you all. |
It can't get any easier that the magic packet example you have for wol.
http://linux.die.net/man/8/ether-wake http://linux.die.net/man/1/wol Might have to make a static arp for that mac address in some cases if you want to use ip addresses. Many examples on the web for similar tasks. http://www.unix.com/shell-programmin...an-script.html |
And without special programs?
Quote:
There are many cases for not using special programs: maybe you are inside a router where you can not upload files nor install programs, or you are logged in a Linux shell with very few privileges, or working with any small Linux embedded device. So you have no possibilities to install "wol", but you can use more standard commands. Quote:
|
busybox does have ether-wake but your device may not have it built in. http://www.busybox.net/BusyBox.html
AFAIK there are no simple bash commands to send data over ethernet required for wake on lan. |
Hope it will be enough.
Quote:
Thanks for answering. |
All times are GMT -5. The time now is 02:42 AM. |