curl-library
Re: libcurl: linux C code that runs telnet commands
Date: Tue, 30 Aug 2011 13:59:06 -0700
On 08/30/2011 11:06 AM, Zvi Vered wrote:
> Hello,
>
> Using libcurl (under linux 2.6.27.35) I want to run a C code that:
>
> 1. open telnet session on a specified IP, port. (The PC with this IP runs telnet server).
> 2. enter username + password
> 3. enter commands.
>
> Can you send a sample C code that does it ?
You have to do some sort of expect type logic on the received data.
Not too difficult, but you have to know what you are doing.
Maybe scripting 'telnet' and expect would be easier for you? There
are examples for that sort of thing on the web I'm sure...
Ben
>
> Thanks,
> Zvika.
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.com ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-08-30