|
#1
| ||||
| ||||
| waking on network activity
Hi All, How do I set my mac to wake for network activity? Everytime I try to connect via afp from my powerbook to my desktop G4, the PowerBook hangs if the G4 is asleep. There's a setting for wake when the modem detects a ring, but how about when the network detects a request? |
|
#2
| ||||
| ||||
|
I developed a script for this exact purpose today!! Code: set mac_addr to "00:30:65:7C:76:DA"
display dialog "What do you want to do?" buttons {"Cancel", "Wake Remote Mac"} default button 2
set res to the button returned of the result
if res is "Wake Remote Mac" then
try
do shell script "wol " & mac_addr
display dialog "Remote Mac Should be awake!" buttons {"Ok"} giving up after 5
on error
display dialog "Error waking iMac on " & mac_addr buttons {"Ok"} default button 1 giving up after 5
end try
end if
you will also need wol (wake on lan) click here to get it http://www.gknw.de/cgi_bin/downlcnt.pl?wol_mac.tar.gz you will need to move the wol file to /usr/bin uise terminal to do this sudo cp Desktop/wol/wol /usr/bin/ presuming Desktop/wol/wol is the path to the wol file. Of course there is an easier way but i wanted to script it. If you just want to wake a remote mac try WakeUp - search for it on versiontracker.com
__________________ | PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge |
|
#3
| ||||
| ||||
|
damn smilies!!! and dont for get to replace the mac_addr with th eone of the mac you are waking!
__________________ | PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge |
|
#4
| ||||
| ||||
|
profx -- Thanks. I looked into using WakeUp, but a comment on VersionTracker says it doesn't work with wirelessly connected macs. Does your script work with wireless? EDIT: I just downloaded and tried WakeUp and it works like a charm. As long as the TARGET machine is wired to the network, it works. If the target machine is airport, the antennae sleeps along with the rest of it, and can't be told to wake. Thanks for the tip!
__________________ ----------------------------- OS X Tiger 10.4.3 Powerbook 12" (867 MHz) Last edited by larry98765; April 17th, 2003 at 01:41 AM. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reconnecting to network after waking from sleep | jeffrito | Networking & Compatibility | 2 | November 12th, 2003 05:19 PM |
| windows network + wireless router = unable to browse school network? | diddy | Networking & Compatibility | 2 | May 1st, 2003 02:00 PM |
| Network Preferences Lockout | Swrdfshtrombone | Mac OS X System & Mac Software | 6 | January 18th, 2003 07:10 AM |
| Appletalk/Airport network in OS 9/X | ony_gosshamer | Mac OS X System & Mac Software | 3 | January 14th, 2002 12:11 PM |
| DSL, OS X, and PC network problem | ~vert | Mac OS X System & Mac Software | 6 | October 15th, 2001 01:19 PM |