Quoted:\Perl>perl "wol.pl -i 192.168.0.40"
Can't open perl script "wol.pl -i 192.168.0.40": No such file or directory
d:\Perl>perl wol.pl "-i 192.168.0.40"
Usage
wakeonlan [-h] [-v] [-i IP_address] [-p port] [-f file] [[hardware_address]...]
Options
-h
this information
-v
dislpays the script version
-i ip_address
set the destination IP address
default: 255.255.255.255 (the limited broadcast address)
-p port
set the destination port
default: 9 (discard port)
-f file
uses file as a source of hardware addresses
See also
wakelan(1)
d:\Perl>perl wol.pl -v
wakeonlan version 0.40
Quoted:\Perl>perl wol.pl -i 192.168.0.40
Usage
wakeonlan [-h] [-v] [-i IP_address] [-p port] [-f file] [[hardware_address]
...]
Options
-h
this information
-v
dislpays the script version
-i ip_address
set the destination IP address
default: 255.255.255.255 (the limited broadcast address)
-p port
set the destination port
default: 9 (discard port)
-f file
uses file as a source of hardware addresses
See also
wakelan(1)
1 2 3 4 5 6
#!/usr/bin/perl use strict; use warnings; require Net::Wake; Net::Wake::by_udp('192.168.0.255', '00:08:9B:E1:0A:10') or die "Fehler '$!'";