From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <43B51949.1030209@stc.donpac.ru> Date: Fri, 30 Dec 2005 14:26:01 +0300 From: Eugene Prokopiev User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.7.2) Gecko/20040808 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: Community@lists.altlinux.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: [Comm] =?koi8-r?b?79TQ0sHXydTYINTFy9PUINcgVENQLdDP0tQ=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 11:25:40 -0000 Archived-At: List-Archive: List-Post: Здравствуйте! А как из скрипта отправить некий текст в TCP-порт и получить ответ? Например: $ telnet 192.168.101.181 25 Trying 192.168.101.181... Connected to 192.168.101.181. Escape character is '^]'. 220 myserver.ru ESMTP Postfix ehlo test 250-myserver.ru 250-PIPELINING 250-SIZE 10240000 250-ETRN 250-XVERP 250 8BITMIME quit 221 Bye Connection closed by foreign host. $ telnet 192.168.101.181 25 << EOF > ehlo test > quit > EOF Trying 192.168.101.181... Connected to 192.168.101.181. Escape character is '^]'. Connection closed by foreign host. В чем разница? Что телнету не так? Неужели с сокетами нужно заморачиваться? -- С уважением, Прокопьев Евгений