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