#!/usr/bin/execlineb piperw 3 4 background { fdclose 4 fdmove 0 3 s6-setsid -b foreground { cat } runblock 1 } fdclose 3 if { fdclose 4 runblock -r 1 }