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