irctk

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

msg.sh (249B)


      1 #!/bin/bash
      2 
      3 trap 'kill $(jobs -p)' EXIT
      4 
      5 mkdir -p msg
      6 cd msg
      7 
      8 seq 3 | awk '{print $0, $0}' > ref
      9 tail -f /dev/null | ../../irctk -Ff msgi@localhost > heard &
     10 PID=$!
     11 sleep 1
     12 cat ref | ../../irctk msgo@localhost msgi
     13 sleep 1
     14 kill $PID
     15 diff ref heard