473,390 Members | 1,686 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,390 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 5311
"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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.