changeset 4 | 90517678cc4f |
parent 1 | 2b40d63a9c3d |
child 5 | 453da2cfceef |
1:2b40d63a9c3d | 4:90517678cc4f |
---|---|
1 #!/bin/bash |
|
2 |
|
3 if [ -z "$1" ]; then |
|
4 echo "usage: $0 <imaccount-uid> <imPresence>" |
|
5 exit 1 |
|
6 fi |
|
7 tracker-sparql --update --query " |
|
8 DELETE { <$1> nco:imContactPresence ?status } |
|
9 WHERE { <$1> nco:imContactPresence ?status } |
|
10 INSERT { <$1> nco:imContactPresence $2 } |
|
11 " |