DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦c388490e5⟧ TextFile

    Length: 416 (0x1a0)
    Types: TextFile
    Names: »2dpipe.sh«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec1/2dpipe/2dpipe.sh« 

TextFile

trap '' 1 2 3
dead_timeout=20
case $0
in
	0)	r1="$0>";r2="$0<";;
	1|2)	r1="$0<";r2="$0>";;
esac
fifo=/tmp/fifo$$
mknod $fifo p 
echo $fifo
exec >&-
(
	trap 'reader_end=1' 15
	reader_end=
	sleep $dead_timeout&
	wait
	trap '' 15
	kill $!
	if [ -z "$reader_end" ]
	then
		eval : $r1 $fifo
	fi
	rm -f $fifo
) 2> /dev/null &
cleanup=$!
(
	(eval "$@" $r2 $fifo; exit 0) || eval : $r2 $fifo
	kill $cleanup 2> /dev/null
) &