473,322 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 5305
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Donnal Walter | last post by:
On Windows XP I am able to connect to a remote telnet server from the command prompt using: telnet nnn.nnn.nnn.nnn 23 where nnn.nnn.nnn.nnn is the IP address of the host. But using telnetlib,...
5
by: richardtinkler | last post by:
I need to communicate with a POP3 server using ASP. Does anybody have any ideas how I can set up a telnet connection using an ASP script? There are some components out there, but my host won't...
1
by: Michael | last post by:
Dear all, Given the following challenge: 1. The application is an exe on a W2K server 2. User logs via telnet to the server 3. After checking the user account and password, a bat file runs...
3
by: Pete | last post by:
Is there any possiblity of writing an Access or Visual Basic application that provides a method of sharing the window focus between Access and the Shell application? i.e....
3
by: Horst Walter | last post by:
What I try to accomplish is to run "telnet.exe" as a process in C#. The C#-code below works with terminating commands, e.g. a "HelloWorld.exe". Since I'd like to communicate with "telnet" the...
2
by: Al | last post by:
I'm currently attempting to use PLink (the console component of PUTTY - see http://www.chiark.greenend.org.uk/~sgtatham/putty/) as a Telnet component as I may in future need to change to using SSH...
1
by: luvic.vangool | last post by:
Hi, I am looking for a suitable Ajax Telnet Application. The main reason for this is I have a training company client that needs to allow access to their training systems via completely vanilla...
0
by: Raj | last post by:
Hi, I am newbie to programming with libcurl. the problem is i want to send my gmail username and password outside the browser and get access to my mail. this i am doing with LibCurl. Though i dont...
2
by: borucik | last post by:
I am trying to use libcurl with Visual C++ 2005 Express Edition. I downloaded the file from here: http://curl.haxx.se/dlwiz/?type=lib&os=Win32&flav=-&ver=2000%2FXP It is the 7.16.0 version of the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.