Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision |
wiki:job_event_notifications [2016/03/23 23:32] – [XMPP notification] neyron | wiki:job_event_notifications [2016/03/23 23:32] – [XMPP notification] neyron |
---|
''sendxmpp'' will have to authenticate itself to a jabber server, with credentials set in our ''~/.sendxmpprc'' (see the manual page of ''sendxmpprc''). We need to have a dedicated jabber user (different from the one we use to get the notification) to send the message, but that's not very expensive. | ''sendxmpp'' will have to authenticate itself to a jabber server, with credentials set in our ''~/.sendxmpprc'' (see the manual page of ''sendxmpprc''). We need to have a dedicated jabber user (different from the one we use to get the notification) to send the message, but that's not very expensive. |
| |
Assuming that the script is stored in /home/myself/bin/jabber.sh, we can use it with: | Assuming that the script is stored in ''/home/myself/bin/jabber.sh'', we can use it with: |
<code bash> | <code bash> |
$ oarsub --notify "exec:/home/myself/bin/jabber.sh" ... | $ oarsub --notify "exec:/home/myself/bin/jabber.sh" ... |
</code> | </code> |