468,497 Members | 1,869 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,497 developers. It's quick & easy.

telnet from c application using libcurl ??

Hi,

I am trying to make an application in C which must establish a telnet
session
with a remote server, execute some scripts on the remote server and close
down
the telnet session.

I have had a look at libcurl since it supports several protocols, but I
haven't been
able to figure out if I can use libcurl for the purpose described above.

Any suggestions to what I could do?

The application must be programmed in C and the telnet session has to be
controlled from the same C-application.

Cheers...

Feb 23 '08 #1
3 4875
"Jake" <ja**@nospam.dkwrites:
I am trying to make an application in C which must establish a telnet
session
with a remote server, execute some scripts on the remote server and close
down
the telnet session.

I have had a look at libcurl since it supports several protocols, but I
haven't been
able to figure out if I can use libcurl for the purpose described above.

Any suggestions to what I could do?

The application must be programmed in C and the telnet session has to be
controlled from the same C-application.
You will get better answers if you post in a group that discusses
whatever system you are targeting (e.g. comp.unix.programmer if you
want a POSIX solution). I don't know here to go for help specific to
libcurl.

Standard C (the topic here) has no mechanism to do this.

--
Ben.
Feb 23 '08 #2
Jake wrote:
>
I am trying to make an application in C which must establish a
telnet session with a remote server, execute some scripts on the
remote server and close down the telnet session.

I have had a look at libcurl since it supports several protocols,
but I haven't been able to figure out if I can use libcurl for
the purpose described above.

Any suggestions to what I could do?
Yes. First, limit your line lengths to 72 chars (but 67 is
better). I corrected your post above. Second, post your query on
a newsgroup where it is topical. telnet protocols, libcurl, etc.
are not topical on c.l.c, where the topic is standard C, as
described in K&R or the ISO standards.

F'ups set.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com

Feb 24 '08 #3
CBFalconer <cb********@yahoo.comwrites:
Jake wrote:
>>
I am trying to make an application in C which must establish a
telnet session with a remote server, execute some scripts on the
remote server and close down the telnet session.

I have had a look at libcurl since it supports several protocols,
but I haven't been able to figure out if I can use libcurl for
the purpose described above.

Any suggestions to what I could do?

Yes. First, limit your line lengths to 72 chars (but 67 is
better). I corrected your post above. Second, post your query on
a newsgroup where it is topical. telnet protocols, libcurl, etc.
are not topical on c.l.c, where the topic is standard C, as
described in K&R or the ISO standards.

F'ups set.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Please do not use things like "F'ups". It could mean anything. If you do
not speak English people will have problems understanding you. I believe
you lecture people about that on a regular basis.
Feb 24 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Donnal Walter | last post: by
5 posts views Thread by richardtinkler | last post: by
3 posts views Thread by Horst Walter | last post: by
1 post views Thread by luvic.vangool | last post: by
reply views Thread by Raj | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.