* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> Ok, now it works
> 
> .xinitrc
>    mkfifo $HOME/pipe
>    while [ 0 ]
>    do
>        echo "test"
>        sleep 1
>    done > $HOME/pipe &
>    exec /usr/local/bin/dwm < $HOME/pipe*
> *
> 
> xterm
>    echo "toast" > $HOME/pipe
> 
> "toast" appears in status bar for a
> moment and then is replaced back by test.

You can get rid of the nasty EOF problem without using a loop, that
continously replaces your input, like this:

    mkfifo pipe
    tail -f pipe | dwm

And from an xterm or some other source:

    echo foobar > pipe


Note that i actually did not test it with dwm, though it works well with
dzen, so i suppose it will with dwm, too.


> Wyrmskull

HTH, Rob.

Reply via email to