Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- mysql -u v_user -ppass --database=test --reconnect --batch -N -e "call event_notification()" | while read host to from body;
- do
- mongooseimctl add_rosteritem "$from" "$host" "$to" "$host" "$to" none both
- mongooseimctl send_message_chat "$to@$host" "$from@$host" "$body"
- done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement