krot

notification

Aug 28th, 2019
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. mysql -u v_user -ppass --database=test --reconnect --batch -N -e "call event_notification()"  | while read host to from body;
  3. do
  4.     mongooseimctl add_rosteritem "$from" "$host" "$to" "$host" "$to" none both
  5.     mongooseimctl send_message_chat "$to@$host" "$from@$host" "$body"
  6. done;
RAW Paste Data