2 DST=${DST:-nc paster.example.com 2020}
7 [ "$bn" = "$_ext" ] || ext="1:e${#_ext}:$_ext"
10 trap "rm -f $src" HUP PIPE INT QUIT TERM EXIT
12 [ $# -eq 0 ] || ext="1:e${#1}:$1"
14 size=`perl -e 'print -s $ARGV[0]' $src`
15 ( echo -n "d${ext}1:v${size}:" ; cat $src ; echo -n e ) | $DST