That probably makes more sense then to use Lynx, good idea.<br><br>What's with the "x" in the variable?<br><br>Would you mind telling me what values you used for date?<br><br clear="all">Josh Luthman<br>Office: 937-552-2340<br>

Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br>
<br><br><div class="gmail_quote">On Tue, May 31, 2011 at 12:53 AM, David Baldwin <span dir="ltr"><<a href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On 31/05/11 11:24 AM, <a href="mailto:kconnell@ryerson.ca">kconnell@ryerson.ca</a> wrote:<br>
> I've had issues with devmon not updating the bb-display and everything going purple.<br>
> I've had this issue since day one (which is over two years now).<br>
><br>
> I created a "devmon watchdog" script that's runs every 5 min using lynx (txt base html browser) which checks if the status of devmon (shows as dm test) on bb-monitor. If its purple then I kill the devmon process and start it up again....band-aid solution, but it does the trick.<br>


><br>
> I no script expert, but can share the bash script if you want/need.<br>
><br>
</div>Here's mine (replace xymonserver with your hostname):<br>
<br>
#!/bin/sh<br>
COL=`bb xymonserver "hobbitdboard <a href="http://xymonserver.dm" target="_blank">xymonserver.dm</a> fields=color"`<br>
if [ "x$COL" == "xpurple"  ] ; then<br>
  (date "+%x %X restarting purple devmon"<br>
  /etc/init.d/devmon restart) | tee /var/log/devmon-restart.log | mail<br>
-s "Restarting devmon" xymonadmin<br>
fi<br>
<div class="im"><br>
--<br>
David Baldwin - IT Unit<br>
Australian Sports Commission          <a href="http://www.ausport.gov.au" target="_blank">www.ausport.gov.au</a><br>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616<br>
<a href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          Leverrier Street Bruce ACT 2617<br>
<br>
<br>
-------------------------------------------------------------------------------------<br>
</div>Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au" target="_blank">http://www.ausport.gov.au</a><br>
<div class="im"><br>
This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.<br>


</div>-------------------------------------------------------------------------------------<br>
</blockquote></div><br>