Add files via upload
This commit is contained in:
18
saf7_SendMsg.sh
Normal file
18
saf7_SendMsg.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#/bin/sh
|
||||
|
||||
if [ $# -lt 2 ];then
|
||||
echo "Arg 1 : full jid without resource."
|
||||
echo "Arg 2 : message."
|
||||
echo "Arg 3 : bus name tag. Optional. Default = default ."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
RECIPIENT="$1"
|
||||
MSG="$2"
|
||||
TAG="default"
|
||||
[ -n "$3" ] && TAG="$3"
|
||||
|
||||
dbus-send --system --print-reply=literal --type=method_call --dest=xmpp.saf-"$TAG" /xmpp/saf xmpp.saf.SendMsg string:"$RECIPIENT" string:"$MSG"
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user