Консольный ICQ-клиент

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
kraspaz
проходил мимо

Консольный ICQ-клиент

Непрочитанное сообщение kraspaz » 2010-05-06 7:54:18

В общем требуется самый простейший консольный клиент для отправки сообщений в аську. Всякие контакт листы и даже прием сообщений не нужен. Главное чтоб утилитке передать параметры, типа:

Код: Выделить всё

$ echo "PRIVET" | megaicqclient --to 123456 --login 10000 --p pass --server server.aol
ну или что-то типа этого :smile:

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
LimpTeaM
сержант
Сообщения: 236
Зарегистрирован: 2007-10-04 16:26:21

Re: Консольный ICQ-клиент

Непрочитанное сообщение LimpTeaM » 2010-05-06 10:01:06

посмотрите в сторону консольного клиeнта centerim. сам так не пробовал, но в мануале есть такое:

Код: Выделить всё

Sending events
In fact, it's not really sending. CenterIM just allows you to put an event to the outgoing queue from another process with command line options. To have the event sent immediately CenterIM must be running, otherwise all of your queued events will be sent as soon as the program is launched and connected to the corresponding IM network.
The following command line options are used to put an event to the outgoing queue:
  -s or --send <event type>

    This parameter specifies the type of event you want to send.
    Currently only "msg", "url" and "sms" are supported.

  -p or --proto <protocol type>

    This one specifies to which IM network the destination contact
    belongs to. Can be either "icq", "yahoo", "aim", "irc", "jab"
    or "lj".

  -t or --to

    With this one you specify nickname or UIN of the destination
    contact. For icq it's possible to specify 0 to send events to
    yourself. Only SMSes are known to be possible to be sent to oneself
    though.

  -n or --number

    Using this parameter you can send SMSes to any mobile numbers
    through the ICQ network.
The message text is read from the standard input, so use pipes in shell to pass it. For example, you can say "hi" to me through the ICQ network with the following command:
   $ echo "hi" | centerim -s msg -p icq -t 17502151
In case you want to send an URL, the URL itself and its description are separated with a newline character the following way:
   $ echo -e "http://thekonst.net/\nMy modest homepage." | CenterIM -s url -p icq -t 17502151
Finally, a small example of sending SMSes:
   $ echo "sms test" | centerim -s sms -n 1234567890
Please note, that all three parameters are required in order to queue an event.