Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2016 14:50:44 -0500
From:      Tim Daneliuk <tundra@tundraware.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: talking with chat(1) like tool to a socket
Message-ID:  <571E7514.9070901@tundraware.com>
In-Reply-To: <20160425213015.8db2da70ba7a489e9c19a1c4@yahoo.es>
References:  <20160425100944.GA3789@c720-r292778-amd64> <20160425213015.8db2da70ba7a489e9c19a1c4@yahoo.es>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/25/2016 02:30 PM, Eduardo Morras via freebsd-questions wrote:
> On Mon, 25 Apr 2016 12:09:44 +0200
> Matthias Apitz <guru@unixarea.de> 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 <emorrasg@yahoo.es>


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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?571E7514.9070901>