<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 25, 2015 at 11:46 AM, Iñaki Malerba <span dir="ltr"><<a href="mailto:inakimmalerba@gmail.com" target="_blank">inakimmalerba@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Im trying to write a script for my xmobar to show my server status. Its mainly a physical server and 2 virtual machines.</div><div><br></div><div>I tried by sending ping and checking the response, but the xmobar freezes everytime its executed until it finishes the run.</div><div></div></blockquote></div><br>xmobar expects commands that it runs to return quickly. You will need to have a separate script that does the check and logs its result to a file, then check the contents of the file from xmobar.<br><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>