On Monday 04 of April 2011 23:35:26 smi...@zenzebra.mv.com wrote:
> (...)
> I know that using awk(1) is a possibility, but awk(1) still has to
> system() every "test -e", just like rc(1) does. 
> (...)

instead of "test -e" (and other object-related tests), why not to pipe from 
awk to plumb (the program) or to /mnt/plumb/send? i guess plumber is the 
default `dispatch-if-object-exists' mechanism in p9.

using the `plumb' program would require exactly one rfork()/exec() for one 
message you decide in awk to pass through -- less than one per click. even 
better, piping to /mnt/plumber/send is just one open()/write(). your script is 
free to add and/or change plumber rules upon start.

-- 
dexen deVries

[[[↓][→]]]

``In other news, STFU and hack.''
mahmud, in response to Erann Gat's ``How I lost my faith in Lisp''
http://news.ycombinator.com/item?id=2308816

Reply via email to