Add dasc-dummy, the simpliest dasc implementation for testing

This commit is contained in:
Cheer Xiao 2013-06-18 21:44:38 +08:00
parent 89517efc66
commit 005375582c

16
dasc-dummy Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
req=$1 res=$2; shift 2
{
while read line; do
printf 'response: %s\n' "$line"
done
} <&$res &
child=$!
while read line; do
printf '%s\n' "$line" >&$req
done
kill $child