Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Python not required' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Python not required
Authored by: SeanAhern on Feb 20, '02 04:16:39PM

Editor, the python example that was given is not to be run on the machine to wake. It's meant to be run on some other machine that you have access to. The python example could be written in any other language you want. It just sends particular data on a socket. The machine to wake doesn't need to be running anything in particular - just listening on the other end of the socket.

(This is all assuming, of course, that I read the article correctly...)



[ Reply to This | # ]
Python not required
Authored by: aranor on Feb 20, '02 04:30:06PM

You read the article correctly, but not the editor's comments. The editor wanted a version of the script written in something else (like a shell script using sh) that's installed on all OS X machines so he could use it. This is because the Editor doesn't have/use python, so he can't use the python script.

As a side note, I second the editor's request.



[ Reply to This | # ]
Python not required
Authored by: The Jet Coaster on Feb 20, '02 08:05:24PM

Spiff up the python script and just compile the python script into an Terminal executable. Works at least on Linux.



[ Reply to This | # ]
Python not required
Authored by: gteague on Feb 21, '02 04:08:41AM

there was an author's comment on the version tracker page which should solve this. i quote:

'To [APi]TheMan From Developer: Look under the source folder for a file named "wakeonlan". This file is really a compiled perl script which my program uses. Therefore you can use that directly from the command line.'

Many thanks to everyone -- I was needing exactly this feature (wake from cli). I have a server running 24/7 and a sleeping g4/733 workstation. I can only telnet into the server from work and sometimes I need a file from the workstation. This will be far easier than firing up TBk2 on my laptop and dialing up the workstation.

/guy



[ Reply to This | # ]
Python not required
Authored by: victory on Feb 22, '02 12:49:29AM

A couple of months back, when I first discovered that my Cube could be woken from sleep by 'magic' wake-on-LAN packets, I found a short C program that would do just that. It was more of a test program and had the MAC address of the target computer hard-coded. It was evidently written for Linux, but since it used the usual BSD-style socket calls, I did get it to complie and work under OSX. I didn't mess with it any further because of other projects.

If anyone is interested, I can try to look for the source or at least a link to where I found it.



[ Reply to This | # ]
wakelan.c
Authored by: victory on Mar 05, '02 06:02:53PM
Since at least one person has asked, here's the link to a small C prg that will send the magic WOL packet.
You will need to add the following line:
#include <unistd.h>
to the wakelan.c file, but it should configure/make just fine after that. This is a decent page of info for anyone interested in WOL.

[ Reply to This | # ]