> 1. when there are commercial flagging jobs. I want the slave to do all<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">> flagging. When my combined FE/BE is flagging i get pre-buffers when<br>> watching HD so i would prefer it not to ever do it.<br><br></div>Nice idea, I like it.<br><br>Make your own script (bash or perl) which runs mythcommflagging. It
<br>could work like this:<br>1. check whether slave is online (with ping or something else)<br>2. if not, run WOL command to wake slave and wait 1-2 minutes to finish booting<br>3. run mythcommflag (for the slave)<br></blockquote>
<div><br>So here is what I was thinking...<br><br>I need to parse the xml file that is on <i>ip_of_master</i>:3644/xml<br>then parse that to leave me with whats in between <JobQueue> and </JobQueue><br>Inside that it appears jobs are listed. There is a field that lists Status. When this equals 1 a job is in queue. So i need to power on the FE(if its not already running), ssh to it, and run the mythjobqueue.
<br><br>Then, my though was to have the master check the status of the job queue every 30 mins. If there is any pending or in-progress jobs do nothing. If all jobs are status=272 (this means completed) ssh to the FE and power it off. I think 30mins would be a good timing to not be powering off the backend all the time, maybe i should make it longer Thoughts?
<br><br><br>Anyone be willing to work on a script? I am not very inclined on scripting yet.<br><br>also CCing the Dev list. Devs, maybe a script isnt the best idea. Would doing this in the backend be easier/better?<br>
<br>Thanks,<br>Mitchell<br></div></div>