talking with chat(1) like tool to a socket

Tim Daneliuk tundra at tundraware.com
Mon Apr 25 20:13:08 UTC 2016


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 at 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 at yahoo.es>


Not exactly what you want, but have you looked at socat or netcat?


-- 
----------------------------------------------------------------------------
Tim Daneliuk     tundra at tundraware.com
PGP Key:         http://www.tundraware.com/PGP/



More information about the freebsd-questions mailing list