Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win



Posted on 2007-04-11
Medium Priority
Last Modified: 2010-04-01
I am a telnet client,I want to send some commands to the server from my code and get the information out of it and send this information to some other application...This sequence will continue in  a while loop.

 enter into pdt shell from code instead of typing it manually as CTRL+pdt.
send the command and get the information...
Wait for 30 seconds of time to send the command again  and in mean while
enter into vxshell ..
send the command and get the information and again wait here for 30 seconds to send the command again
Again enter into pdt mode...
Repeat the cycle..

Hope I explained the requirement clearly...
Any idea on how to do this? Just an idea...

My code is in Visual Studio 2005.

Question by:tatikor_143
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4

Author Comment

ID: 18890738
Just want to add a point ...

To enter into pdt shell manually hold the control key and enter pdt..
HOw to achieve the same from code...

Author Comment

ID: 18891523
I am not looking for any links and I have a stable telnet code..

I just need an idea to achieve my requirement
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 30

Expert Comment

ID: 18891635
I'm sorry, but your question is not clear.

What exactly are you having problems with implementing?

Please post your stable telnet code, and ask a specific question related to it.
LVL 30

Expert Comment

ID: 18891642
If you need to send a file to your target server, then you should look at the first link I posted.

Author Comment

ID: 18891867
Just a simple question...

Enter key sequence - " \r\n"
Control sequence  - ?
To enter into pdt shell manullay ,I do CNTRL+pdt..
To enter from the code,How ?
LVL 30

Expert Comment

ID: 18891925
>>To enter from the code,How ?

I'm not sure how you can do it from the code, but you should be able to set this up as your default shell using .cshrc file.

Author Comment

ID: 18891967
I am able to do it from the code but my question is How to enter the control sequence?

To emulate the enter key we can send -- "\r\n"
What is the same for the CNTRL key ????
LVL 16

Accepted Solution

AlexNek earned 1500 total points
ID: 18894263
I think you already have the answer from other thread. Just to summary.
You can use any code as symbol  /Not correct for Unicode/ for this yoou only need to write the code after backslash '\21'. You can use octal, decimal or hexidecimal scale of notation.
Some usefull codes have the equvalent symbol
\t = '\9', \r= \13, \n = '\10', \f = ' \12' , \a = '\7', '\b' = '\8'.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question