icq
Просмотр ника по ICQ UID на bash
#!/bin/bash curl http://people.icq.com/people/about_me.php?uin=$1 2> /dev/null | \ grep "<div class=\"h5-2-new\">" | awk -F ">" '{print $2}' |\ iconv -f cp1251 -t utf-8 | awk -F "<" '{print $1}'
UPD:
#!/bin/sh if [ -z "$1" ]; then echo Usage: $(basename $0) ICQ-UIN exit 1 fi curl http://people.icq.com/people/about_me.php?uin=$1 2> /dev/null | \ sed -ne 's,.*<div class="h5-2-new">\([^<]*\)</div>.*,\1,p' | iconv -f cp1251 -t utf-8
Несколько учетных записей в climm
Для того, чтобы использовать несколько учетных записей в climm, причем еще и одновременно - достаточно выполнить несколько шагов.
1. в ~/.climm/climmrc прописываем нужные блоки для наших соединений
[Connection]
type icq8 auto
version 8
server login.icq.com
port 5190
screen ВАШ_UIN
#password
status online
...
[Connection]
type icq8 auto
version 8
server login.icq.com
port 5190
screen ВАШ_UIN_НО_ДРУГОЙ)))
#password
status online
2. Micq при запуске соединится со всеми вашими номерами. Посмотрим за какое соединение отвечает каждый
mICQ> conn
Connections:
01 server version 8 for ВАШ_UIN (online), at 64.12.25.118:5190
connected
обработчик событий в micq
читаем мануал :)
$ man climmrc
event <script>
Set the script to execute for events to script. It is called
with the following arguments:
1. The IM type, currently only icq.
2. The UIN of the contact this event relates to, or 0.
3. The nick of the contact this events to relates to, or the
empty string.
4. The string global.
5. The type of this event, which can be msg, on, off, beep or
status, where on and off are for oncoming and offgoing contacts.
This list may not be exhaustive.
6. For messages, the message type, for offgoing contacts, the
previous status, and for oncoming contacts or status changes,
the new status, otherwise 0.
7. The text of the message.
8. The contact's user agent.