irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

all.sh (338B)


      1 #!/bin/bash
      2 
      3 trap 'kill $(jobs -p)' EXIT
      4 
      5 mkdir -p all
      6 cd all
      7 
      8 seq 3 | sed 's/^.*/[#all_testa] <allout> &\n[#all_testb] <allout> &/' > ref
      9 tail -f /dev/null | ../../irctk allin@localhost \#all_testa \#all_testb > heard &
     10 PID=$!
     11 sleep 2
     12 seq 3 | ../../irctk allout@localhost -I 4 -l \#all_testa \#all_testb
     13 sleep 6
     14 kill $PID
     15 diff ref heard