On Mon, Jun 20, 2011 at 09:24:25AM -0400, Andrew Hills wrote:
> On Mon, Jun 20, 2011 at 8:40 AM, Kurt Van Dijck <kurt.van.di...@eia.be> wrote:
> > I missed (and still do not see)
> > how to make xsetroot(1) read from stdin, line by line.
> 
> xsetroot -name "`my_commands_that_write_to_stdout`"
> 
> > That's why (I thought) that scripts spawn xsetroot(1) each time.
> 
> They wouldn't need to run your C program each time?

it would do
$ while true; do my_commands_that_write_to_stdout; done | stdin2xroot
as a replacement,

and when my_commands_that_write_to_stdout would be a single program
that emits a line every now & then, you would not spawn processes at all.

That indeed is the only advantage of my program :-)
> 
> --Andrew Hills
> 

Reply via email to