473,395 Members | 1,969 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,395 software developers and data experts.

How to terminate a telnet session from within your C/C++ program

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
cmd.exe that starts the app.
4. The app starts looking for another instance of itself and if it was
found it will kill the instance (but not the telnet session that
originally started the instance as described in 1. to 3.)
5. Since the server allows only 2 telnet sessions, as a consequence,
the next log-in will be refused even there is only one or none
application.

I am looking for a piece of code that will be plugged into the app
and:
1. will not only look for aonther instance of itself but also for the
telnet session that has started the instance and kill this session.

I appreciate any help/hints you can give us,

Michael
Jul 23 '05 #1
1 2331
Michael wrote:
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
cmd.exe that starts the app.
4. The app starts looking for another instance of itself and if it was
found it will kill the instance (but not the telnet session that
originally started the instance as described in 1. to 3.)
5. Since the server allows only 2 telnet sessions, as a consequence,
the next log-in will be refused even there is only one or none
application.

I am looking for a piece of code that will be plugged into the app
and:
1. will not only look for aonther instance of itself but also for the
telnet session that has started the instance and kill this session.

I appreciate any help/hints you can give us,


Hint: you are asking your question in the wrong newsgroup. This one is for
the C++ language and not the telnet protocol or socket programming.

--
Attila aka WW
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christian Wilcox | last post by:
I'm trying to programmatically access information from a telnet session which is normally accessed with a telnet program capable of terminal emulation (currently set at VT320). The initial login...
3
by: Yannick Turgeon | last post by:
Hello all, I'm currently trying to pass commands to a telnet session and get the texte generated (stdin + stdout) by the session. The problem I get is that the Telnet.read_until() function...
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...
5
by: Greg Martz | last post by:
I'd like to do the following in C# and prefer using tcpclient rather than raw sockets... Connect to a unix box Login run date +%H%M%S retrieve the response. That's it, nothing more. This...
1
by: mike11d11 | last post by:
I created a database to work out of at my office, right now we work out of a unix system. we connect using a telnet session software that came with our system we use, but was wanting to place this...
2
by: vmalhotra | last post by:
Hi I am new in python scripting. I want to open a Multiple telnet session through once script. In other way i can tell i want to open two linux consoles through one script. I wrote one...
3
by: =?Utf-8?B?cGlja2VkYW5hbWU=?= | last post by:
Hi, I am trying to establish a telnet session to do screen scraping. This device returns some custom escape sequences, which I can ignore, and some standard escape seq's. At your suggestion, I...
0
by: Graycon | last post by:
I am trying to reboot several devices on my private network through telnet. I wrote a vbs that does the operation but i cannot select any other window while it is running of the input will not go...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.