From owner-freebsd-questions@freebsd.org Mon Apr 25 19:33:23 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF73EB1C884 for ; Mon, 25 Apr 2016 19:33:23 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from nm8-vm1.bullet.mail.ir2.yahoo.com (nm8-vm1.bullet.mail.ir2.yahoo.com [212.82.96.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55B7213C5 for ; Mon, 25 Apr 2016 19:33:22 +0000 (UTC) (envelope-from emorrasg@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1461612607; bh=ULdZw4H5kIWb0gTJAWO96Svo6Ddi9xoldUry8uqKhPo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From:Subject; b=keNX1b+SLFfQ0kMoFhtuDH95j/Xs/KkkDDO+rjE6tiwFCCltpvLZV4jolDKYdECYNTPLQg7pZAEMoSVAz9kpPINIIKfF3LBf5SiMXzFYTzLNT3bS4+OdocEQU4gxNX1AvdOkMgbSuaU/lKHBF48nKzlbXovU7fSGc1HCJkTtcg73SwmJMbf8MdBz0BzmiiAJJUQM8UBXlO2ENUMVdC8D3Lan/+EIhI1EAecOE8/jzcFblOyW3tXcP8QQDiRx855+F1p3hfYICP5CvH71/4lJsDjC1uaef4mIcIsT+l6wNmxd5wieNYEeRLca5C9mDrasgx/zGi+ira8jcdQ0TG+LLg== Received: from [212.82.98.60] by nm8.bullet.mail.ir2.yahoo.com with NNFMP; 25 Apr 2016 19:30:07 -0000 Received: from [46.228.39.105] by tm13.bullet.mail.ir2.yahoo.com with NNFMP; 25 Apr 2016 19:30:07 -0000 Received: from [127.0.0.1] by smtp142.mail.ir2.yahoo.com with NNFMP; 25 Apr 2016 19:30:07 -0000 X-Yahoo-Newman-Id: 573924.6890.bm@smtp142.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: oLgrSUwVM1lc5PgdtU2g_XfVU96L.ks3wqjDjMVlhL8_8cd UkGcC1KLelZtEmz.CbxnOcDjmzuCekxGdmA0SE6C.kiq15iBNP5BPDMfuNKu aOUuh04_RP9WsauOuZGPTKCEHP3g8j7L3GZaqKq0FJeQpewB.e_rdP4zuRqt Jb.F80k89fAwYSrI80hZwTGzPz8cYNdq8v1w6lHwxqelMja_MyZUUau5DoWo BWSNZFFY8E3Ux2zO9yeKr0sznGjCKTKF7Kn8jfjrhqnQCW7hpMqEGQbSl7N7 KNLZ2RJdyZf9WMM1sYLr4UX71B3TGGmZ3u8Vj7DmMrnrGkjhBOPaW5BxlcpA AiI6HDQeYL1PMJ1E.DtVtGhLy7aSSONb2ksmdT.iWOCQWLCWnlcWHUu7rGLW V8Ub6MckUBTh1wqNiXPwL.dSlvrfcV9kwEXpnq0OcIbY6TFKOAxPr4G2Z3OE upEQFslnvA81jszWUIahhLSHODzo43osBZ1kn.xh2YdMwcSHJyKan0IvZqIS 2fBjeG0sfZ6V1u1oK6tw- X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Mon, 25 Apr 2016 21:30:15 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Cc: Matthias Apitz Subject: Re: talking with chat(1) like tool to a socket Message-Id: <20160425213015.8db2da70ba7a489e9c19a1c4@yahoo.es> In-Reply-To: <20160425100944.GA3789@c720-r292778-amd64> References: <20160425100944.GA3789@c720-r292778-amd64> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2016 19:33:24 -0000 On Mon, 25 Apr 2016 12:09:44 +0200 Matthias Apitz wrote: > > Hello, > > In the GOD of modems and PPP I was used to use chat to talk and > initialize modems based on some send/expect scripts... > > I would like to use the same logic of such script to talk to a remote > server (IP+port) which understands commands in text and does respond > with text. It'll be insecure, chat(1) uses plain text. Perhaps you want someting like telnet over tls or ssh? > Any idea before hacking the C-code of chat(1)? > > Thanks > > matthias --- --- Eduardo Morras