From owner-freebsd-questions@freebsd.org Mon Apr 25 20:13:08 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 D5A3CB1CF82 for ; Mon, 25 Apr 2016 20:13:08 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "oceanview.tundraware.com", Issuer "oceanview.tundraware.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E9BD172E for ; Mon, 25 Apr 2016 20:13:08 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [192.168.43.211] (mobile-166-175-188-223.mycingular.net [166.175.188.223] (may be forged)) (authenticated bits=0) by oceanview.tundraware.com (8.15.2/8.15.2) with ESMTPSA id u3PJooRr021479 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 25 Apr 2016 14:50:51 -0500 (CDT) (envelope-from tundra@tundraware.com) Subject: Re: talking with chat(1) like tool to a socket To: freebsd-questions@freebsd.org References: <20160425100944.GA3789@c720-r292778-amd64> <20160425213015.8db2da70ba7a489e9c19a1c4@yahoo.es> From: Tim Daneliuk Message-ID: <571E7514.9070901@tundraware.com> Date: Mon, 25 Apr 2016 14:50:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160425213015.8db2da70ba7a489e9c19a1c4@yahoo.es> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (oceanview.tundraware.com [45.55.60.57]); Mon, 25 Apr 2016 14:50:51 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: u3PJooRr021479 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No 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 20:13:08 -0000 On 04/25/2016 02:30 PM, Eduardo Morras via freebsd-questions wrote: > 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 Not exactly what you want, but have you looked at socat or netcat? -- ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/