irctk

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

first.sh (320B)


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