gajim sleep gajim-remote get_status while online do sleep gajim-remote

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
gajim &
sleep 5
t=`gajim-remote get_status`
while [ "$t" != "online" ]
do
sleep 5
t=`gajim-remote get_status`
done
gajim-remote send_xml '<iq to="icq.sudouser.ru" type="set"><query xmlns="jabber:iq:register"><username>YOURICQNUMBER</username><password>YOURICQPASS</password></query></iq>'
sleep 5
gajim-remote send_xml '<presence to="icq.sudouser.ru"><priority>50</priority><x xmlns="vcard-temp:x:update"><photo /></x><c xmlns="http://jabber.org/protocol/caps" node="http://gajim.org" ver="QXz7szlMhl5PFmOY5DSIQF2BhKE=" hash="sha-1" /></presence>'