DD-WRT is a linux based 3rd party firmware for routers.  Mine has a WOL option built in that I can use to wake PC's on my home network.  It might be possible to dig through their code to find out how they're doing it.
<br><br><div class="gmail_quote">On Dec 4, 2007 2:04 PM, Josh More &lt;<a href="mailto:morej@alliancetechnologies.net">morej@alliancetechnologies.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Cron is great for running tasks at specific times. &nbsp;However, the idea of<br>using cron to run a script every 15 minutes, when you do not have a<br>specific task to do every 15 minutes is unwise. &nbsp;You would basically be<br>
implementing a daemon that is dependent on another daemon. &nbsp;If you want<br>to use cron to keep your daemon up and running, you need either write<br>your daemon better or use supervise to control it.<br><br>However, if you goal is to simply conserve power, I second the
<br>suggestion to use the built-in power management and just have the<br>machine hibernate after inactivity. &nbsp;Then, you can just run a simple<br>monitoring system (mon comes to mind) to scan your network at midnight<br>and let you know which workstations aren&#39;t configured correctly.
<br><br><br><br><br>-Josh More, RHCE, CISSP, NCLP, GIAC<br>&nbsp;<a href="mailto:morej@alliancetechnologies.net">morej@alliancetechnologies.net</a><br>&nbsp;515-245-7701<br><br><br><br>&gt;&gt;&gt; &quot;Nathan C. Smith&quot; &lt;<a href="mailto:nathan.smith@ipmvs.com">
nathan.smith@ipmvs.com</a>&gt; 12/04/07 1:29 PM &gt;&gt;&gt;<br><div><div></div><div class="Wj3C7c"><br>I was thinking about writing something that would let people schedule<br>their<br>machines to start up and be ready for them in the morning using
<br>wakeonlan.<br>This would allow them to shut their windows machines down at night but<br>have<br>them ready for them in the morning. &nbsp;In theory, this would be to save<br>electricity and help people who have a green conscience.
<br><br>Has anybody seen or used something similar?<br><br>A web form to allow them to select days and times for their machine to<br>start<br>up - maybe in 15 minute increments. &nbsp;I&#39;m not sure if I would keep the<br>settings in a database or not. &nbsp;If php has some .ini file or
<br>plist-type<br>libraries I might choose those instead to keep the footprint small<br>(sacrificing scalability). &nbsp;Is there anything similar to wakeonlan to<br>shutdown? &nbsp;I wonder if there are any linux-based windows shutdown
<br>programs<br>like psshutdown. &nbsp;I bet there are some WMI scripts that could do<br>that.....<br><br>What is the best way to schedule a reoccurring item in php? &nbsp;Use cron<br>to run<br>a script every 15 minutes or so?<br><br>
<br>-Nate<br>_______________________________________________<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug
</a><br><br>_______________________________________________<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug
</a><br></div></div></blockquote></div><br>