image
image

Go Back   macosx.com > Mac Help Forums > Networking & Compatibility

Reply
 
LinkBack Thread Tools
  #1  
Old April 17th, 2003, 12:36 AM
larry98765's Avatar
Registered User
 
Join Date: Dec 2002
Location: Oakland CA
Posts: 259
Thanks: 0
Thanked 0 Times in 0 Posts
larry98765 is on a distinguished road
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?
Reply With Quote
  #2  
Old April 17th, 2003, 01:04 AM
profx's Avatar
ill never 4get watsisname
 
Join Date: May 2001
Location: Auckland New Zealand
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
profx is on a distinguished road
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
This is just a portion of the script - mine also checks if the remote mac in question is awake, and if it is it asks if you want to put it to sleep.


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
Reply With Quote
  #3  
Old April 17th, 2003, 01:05 AM
profx's Avatar
ill never 4get watsisname
 
Join Date: May 2001
Location: Auckland New Zealand
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
profx is on a distinguished road
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
Reply With Quote
  #4  
Old April 17th, 2003, 01:14 AM
larry98765's Avatar
Registered User
 
Join Date: Dec 2002
Location: Oakland CA
Posts: 259
Thanks: 0
Thanked 0 Times in 0 Posts
larry98765 is on a distinguished road
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.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

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


All times are GMT -5. The time now is 04:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.