own.sh (301B)
1 #!/bin/bash 2 3 trap 'kill $(jobs -p)' EXIT 4 5 mkdir -p own 6 cd own 7 8 seq 3 | sed 's/^/[#own_test] <owno> /' > ref 9 tail -f /dev/null | ../../irctk owni@localhost \#own_test > heard & 10 PID=$! 11 sleep 1 12 seq 3 | ../../irctk -o owno@localhost \#own_test > heard2 13 sleep 1 14 kill $PID 15 diff ref heard && diff ref heard2