On Wed, Dec 27, 2006 at 09:27:12PM -0500, Chris Zakelj wrote:
> Having a bit of a problem here that I hope someone may be able to shed
> some light on.  I've got a system I'm turning into a DVR, and when the
> system's already on, it works perfectly.  However, in an effort to save
> a bit of electricity (along with wear and tear on the hard drives), I'd
> like to turn the thing off at night, and have my webserver send a WOL
> magic packet to wake it up roughly 10 minutes before the first show of
> the afternoon starts.  I've installed wol-0.7.1p1 from packages, and it
> *sometimes* works.  I say sometimes because it does exactly that...
> whether I turn the computer off using the power button on the keyboard,
> or the shutdown/hibernate modes of Windows XP SP2, there's about a 50/50
> chance it'll wake up when the packet gets sent from command line using:
> 
> #/usr/local/bin/wol -i 192.168.0.5 00:0a:5e:2c:e1:5d
> 
> When running from a crontab, it has never worked.  Where should I look
> for the problem?
> 

What happens if you put it in a loop:

while [ true ]
do
        wol .....
        sleep time_to_boot
        ping -nqc 3 -w 1 192.... > /dev/null && break
done
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies
  • Wake on LAN Chris Zakelj
    • Re: Wake on LAN Craig Skinner

Reply via email to