#!/bin/rc rfork e kill = () fn sighup sigint sigterm{ for(i in $kill) @{echo kill >/proc/$i/note} & } for(i in `{walk -f /n/gridplumber | grep -v '/(send|rules)$'}){ cat $i >>/mnt/plumb/send & kill = ($kill $apid) } {tail; while(sleep 10) read -c 8192}