rtmpub.sh 208 B

1234567891011121314
  1. #!/bin/bash
  2. ROOT=$(cd `dirname $0`/../../; pwd)
  3. TOPIC=test
  4. URL=http://127.0.0.1:9051/mpub?topic=$TOPIC
  5. echo url: $URL
  6. for m in `cat ./msgs.txt`
  7. do
  8. MSG="$MSG|$m"
  9. done
  10. echo MSGS: $MSG
  11. curl -d "$MSG" $URL