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


Click here to return to the 'Wake a sleeping Mac from the network' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Wake a sleeping Mac from the network
Authored by: sirio.bm on Mar 29, '08 05:19:46PM

Thanks a lot for the data - I am a sysadmin and I really needed to wake my macs up to run backups. I wasn't in the office, working over a VPN - very happy when ssh finally got through..

One datum of note: For your python script to run on a Linux system (and I assume Unix [read Mac] as well) you need to add the following line just after you declare the s variable:
s.setsockopt(socket.SOL_SOCKET,socket.SO_BROADCAST,True)

By the way, highly important the point Yoda made is; for young apprentice Jedis, better nothing is than GUI.

But listen well, Anakin - when you are not in the office or just can't be bothered to manually back up every night (no matter how nice the GUI is for waking up the remote computer), copy the python code into a file, make it executable, and have your shell script execute it before it runs the backup commands (rsync over ssh, anyone?)

Oh, and don't forget to throw "sleep 60" after the wakeup script, so that you give your mac(s) time to get out of bed before you try getting in and doing your thing.



[ Reply to This | # ]
Wake a sleeping Mac from the network
Authored by: elightbo on Apr 24, '08 11:52:03AM

This helped out a lot. I couldn't figure out why it wasn't working when going from my Ubuntu server to the MacBook. Also had problems due to not delaying the script. Wish I would have read this first!



[ Reply to This | # ]