<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Добавление добавление пользователей в ejabber скриптом]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=34570&amp;type=atom" />
	<updated>2014-04-15T11:38:41Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=34570</id>
		<entry>
			<title type="html"><![CDATA[Re: Добавление добавление пользователей в ejabber скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=405162#p405162" />
			<content type="html"><![CDATA[<p>правильно было так</p><p><strong>for i in `cat jabberusers.txt`; do ejabberdctl register $i jabbermos.ptg.local $i ;done</strong></p><p> <img src="https://linuxforum.ru/img/smilies/bo.gif" alt="bo" /></p>]]></content>
			<author>
				<name><![CDATA[borisgorbunov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34080</uri>
			</author>
			<updated>2014-04-15T11:38:41Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=405162#p405162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Добавление добавление пользователей в ejabber скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=405160#p405160" />
			<content type="html"><![CDATA[<p>потому что косой&nbsp; <img src="https://linuxforum.ru/img/smilies/bn.gif" alt="bn" /> <br />все работает ))<br />Спасибо..</p>]]></content>
			<author>
				<name><![CDATA[borisgorbunov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34080</uri>
			</author>
			<updated>2014-04-15T11:31:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=405160#p405160</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Добавление добавление пользователей в ejabber скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=405159#p405159" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>borisgorbunov пишет:</cite><blockquote><p>1)Есть список будущих пользователей<span style="color: blue"> jabberusers</span><span style="color: red">.txt</span>&nbsp; формата:</p></blockquote></div><div class="quotebox"><cite>borisgorbunov пишет:</cite><blockquote><p>for i in `cat <span style="color: blue">jabberusers</span>`; do ejabberdctl register $i jabbermos.ptg.local $1 ;done</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2014-04-15T11:31:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=405159#p405159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Добавление добавление пользователей в ejabber скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=405158#p405158" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>borisgorbunov пишет:</cite><blockquote><p>Пробую так :</p><p>for i in `cat jabberusers`; do ejabberdctl register $i jabbermos.ptg.local $1 ;done</p></blockquote></div><p>Почему <strong>$1</strong>, а не <strong>$i</strong>?</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2014-04-15T11:30:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=405158#p405158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Добавление добавление пользователей в ejabber скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=405153#p405153" />
			<content type="html"><![CDATA[<p>Задача в следующем:</p><p>1)Есть список будущих пользователей jabberusers.txt&nbsp; формата:</p><p>user1<br />user2<br />user3</p><p>2) Нужно добавить пользователей в джаббер c паролем как логин.<br />для этого используется комманда:</p><p>ejabberdctl register username yourdomain.com userpassword</p><p>--------------------------------------------------------------------</p><p>Тоесть циклом добавлять пользователей:<br />пример:</p><p>ejabberdctl register user1&nbsp; yourdomain.com user1<br />ejabberdctl register user2 yourdomain.com user2<br />ejabberdctl register user3 yourdomain.com user3<br />ejabberdctl register user4 yourdomain.com user4</p><p>---------------------------------------------------------------------<br />Пробую так :</p><p>for i in `cat jabberusers`; do ejabberdctl register $i jabbermos.ptg.local $1 ;done</p><p>Выхлоп с ошибками :<br />-------------------------------------------------------------------------------<br />Error: the command &quot;register&quot; requires 2 more argument.<br />Command Name: register<br /> Arguments: user::string<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;host::string<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;password::string<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />Returns: res::restuple</p><p>Tags: accounts </p><p>Description: Register a user</p><p>-------------------------------------------------------------------</p><p>Если пишу руками:</p><p>ejabberdctl register test000 jabbermos.ptg.local test000</p><p>То все хорошо..</p><p>User test000@jabbermos.ptg.local successfully registered</p><p>Что не так?? Помогите пожалуйса..&nbsp; <img src="https://linuxforum.ru/img/smilies/bh.gif" alt="bh" /></p>]]></content>
			<author>
				<name><![CDATA[borisgorbunov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34080</uri>
			</author>
			<updated>2014-04-15T11:09:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=405153#p405153</id>
		</entry>
</feed>
