On 2015-02-25 4:13 pm, Laurent Bercot wrote:
>
> How about
> pipeline -w
> {
> cd ..
> forbacktickx -d"\n" i { cat } s6-notifywhenup -f echo
> }
> ...
> ?
This is more elegant, thanks.
> If you don't mind using a shell, you can even have a single shell
> lying around instead of both a forbacktickx and a cat process:
> /bin/sh -c "while read ; do s6-notifywhenup -f echo ; done"
I was trying to avoid the shell, particularly running as root, but
it's not a big risk since it's never handling user input.
(and you could always arrange a user who can write to ./event)
--
Patrick Mahoney <pat_at_polycrystal.org>
Received on Thu Feb 26 2015 - 00:53:07 UTC