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 <<a href="mailto:morej@alliancetechnologies.net">morej@alliancetechnologies.net</a>> 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. 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. You would basically be<br>
implementing a daemon that is dependent on another daemon. 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. 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't configured correctly.
<br><br><br><br><br>-Josh More, RHCE, CISSP, NCLP, GIAC<br> <a href="mailto:morej@alliancetechnologies.net">morej@alliancetechnologies.net</a><br> 515-245-7701<br><br><br><br>>>> "Nathan C. Smith" <<a href="mailto:nathan.smith@ipmvs.com">
nathan.smith@ipmvs.com</a>> 12/04/07 1:29 PM >>><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. 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. I'm not sure if I would keep the<br>settings in a database or not. 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). Is there anything similar to wakeonlan to<br>shutdown? I wonder if there are any linux-based windows shutdown
<br>programs<br>like psshutdown. 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? 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>