<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    -----BEGIN PGP SIGNED MESSAGE-----<br>
    Hash: SHA1<br>
    <br>
    I can provide further detail on this issue.<br>
    <br>
    I have the following in a script called /path/to/newgmails.sh<br>
    <br>
    #!/bin/sh<br>
    <br>
    gmails=`curl -q --insecure <a class="moz-txt-link-freetext" href="http://blog.tmorris.net/test">http://blog.tmorris.net/test</a> | wc -l`<br>
    echo $gmails<br>
    <br>
    In ~/.xmobarrc I have the following<br>
    <br>
    Run Com "/path/to/newgmails.sh" [] "gmail" 100<br>
    <br>
    and in the template<br>
    <br>
    template = "%StdinReader% }{ %gmail%
    &lt;fc=yellow&gt;%date%&lt;/fc&gt;"<br>
    <br>
    If I change the URL in the script to use https at some other URL,
    then<br>
    xmobar updates. As soon as I press mod-q to restart xmonad, then<br>
    xmobar does not reappear at all. When I shift window focus, then
    the<br>
    place where xmobar should appear is taken up by transparency (I
    see<br>
    the GNOME background). When I change the script back to use http
    (and<br>
    not https), then mod-q, xmobar reappears as normal.<br>
    <br>
    This has me completely baffled.<br>
    <br>
    On 12/02/11 22:28, Tony Morris wrote:<br>
    <span style="white-space: pre;">&gt; <br>
      &gt; Yes, it is newline-terminated. The output of hexdump is
      0a30.<br>
      &gt; <br>
      &gt; I have it narrowed down to using a https connection instead
      of<br>
      &gt; http. I can produce it with either curl or wget. xmobar is
      not<br>
      &gt; logging anything.<br>
      &gt; <br>
      &gt; Grasping at straws... any more ideas?<br>
      &gt; <br>
      &gt; <br>
      &gt; On 12/02/11 04:09, Norbert Zeh wrote:<br>
      &gt;&gt; Is the output you see from the script
      newline-terminated? If it <br>
      &gt;&gt; isn't, xmobar may not process this input because, at
      least for<br>
      &gt;&gt; the stdin reader (and I assume the mail reader does the
      same),<br>
      &gt;&gt; it processes things one line at a time. Then again, I
      don't see<br>
      &gt;&gt; why the whole bar should hang if it isn't
      newline-terminated. <br>
      &gt;&gt; Normally, it should just display "Updating..." or
      something like <br>
      &gt;&gt; that if it's waiting for input from the command it
      runs.<br>
      &gt; <br>
      &gt;&gt; - Norbert<br>
      &gt; <br>
      &gt;&gt; Tony Morris [2011.02.11 2236 +1000]:<br>
      &gt;&gt;&gt; <br>
      &gt;&gt; Hello, I am trying to run a script to check gmail as
      described<br>
      &gt;&gt; here (with some errors) <br>
      &gt;&gt;
      <a class="moz-txt-link-freetext" href="https://wiki.archlinux.org/index.php/Xmobar#Gmail_integration">https://wiki.archlinux.org/index.php/Xmobar#Gmail_integration</a><br>
      &gt; <br>
      &gt;&gt; When I set the template to %mail% and restart xmobar,
      the bar <br>
      &gt;&gt; refuses to display. If I set the script to a
      non-existent file,<br>
      &gt;&gt; I see xmobar with a message "Could not execute
      command", so I<br>
      &gt;&gt; know it's all configured fine, but for the script that
      checks<br>
      &gt;&gt; gmail. If I run that script manually, I see a single
      integer<br>
      &gt;&gt; value on standard output.<br>
      &gt; <br>
      &gt;&gt; I can't seem to find any place that xmobar is logging
      to help <br>
      &gt;&gt; identify what is causing the error (xmobar refusing to
      display<br>
      &gt;&gt; when asked to Run Com my script.<br>
      &gt; <br>
      &gt;&gt; Thanks for any pointers.<br>
      &gt; <br>
      &gt;&gt;&gt; <br>
      &gt;&gt;&gt; <br>
      &gt; _______________________________________________ xmonad
      mailing<br>
      &gt; list <a class="moz-txt-link-abbreviated" href="mailto:xmonad@haskell.org">xmonad@haskell.org</a> <br>
      &gt; <a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/xmonad">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
      &gt; <br>
      &gt;&gt; _______________________________________________ xmonad
      mailing <br>
      &gt;&gt; list <a class="moz-txt-link-abbreviated" href="mailto:xmonad@haskell.org">xmonad@haskell.org</a> <br>
      &gt;&gt; <a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/xmonad">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
      &gt; <br>
      &gt; </span><br>
    <br>
    - -- <br>
    Tony Morris<br>
    <a class="moz-txt-link-freetext" href="http://tmorris.net/">http://tmorris.net/</a><br>
    <br>
    -----BEGIN PGP SIGNATURE-----<br>
    Version: GnuPG v1.4.10 (GNU/Linux)<br>
    Comment: Using GnuPG with Mozilla - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>
    <br>
    iEYEARECAAYFAk1XSSsACgkQmnpgrYe6r61cGwCdFj9kpnAkzfSNyHd0j+hdpijw<br>
    52oAoKuv4RwTx9Da/X/+cRZV2ygxLng3<br>
    =A0zh<br>
    -----END PGP SIGNATURE-----<br>
    <br>
  </body>
</html>