String Question
diffuser78 at gmail.com
diffuser78 at gmail.com
Wed Jun 28 11:56:56 EDT 2006
Many Thanks!! It worked like a charm.
Fredrik Lundh wrote:
> diffuser78 at gmail.com wrote:
>
> > mac_string = '001485e55503' (This is the mac address of a computer.)
> >
> > I am using wake on LAN python script to start computer remote.It uses
> > format like this ....
> >
> > s.sendto('\xff'*6 + '\x00\x014\x85\xe5\x55\x03'*16, ('192.168.1.255',
> > 80))
> >
> > where '\x00\x14\x85\xe5\x55\x03' is the MAC address to be used.
>
> s.sendto('\xff'*6 + binascii.unhexlify(mac_string) *16, ('192.168.1.255', 80))
>
> </F>
More information about the Python-list
mailing list