Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a program running on a server that accepts a raw TCP/IP connections on a specified port. When a connection is made, this program waits for the user (i.e. me) to send a string which identifies the type of user. Once the user identifies themselves, the program will start sending data that is relevant to that user type. I want to automate the first step and have putty automatically send the user identification string once the connection is made. I've been through the settings, and can't seem to find anything like "send following commands on connection". Any help would be appreciated.

I just found KiTTY via one of the ads. Reading through some of the information, it doesn't seem like it will solve my problem, but I'd just like to double check.

share|improve this question
Are you sure PuTTY is still the right tool for this? It's meant for interacting with a remote system. If you just want to send data and get back a response, why don't you just whip up a small script? – sleske Feb 11 '11 at 13:46
The only other real option is telnet. PuTTY offers some other advantages over telnet that are beyond the scope of the question. If they were otherwise equal, I would use telnet, but since they're not, I'd prefer to stick with PuTTY. – MBraedley Feb 11 '11 at 15:32
up vote 1 down vote accepted

I would like that, too. Probably we have to wait until this wish on the PuTTY wishlist is implemented.

share|improve this answer

i think telnet is your tool with input taken from a file


openssl s_client -connect<port>

From openssl

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.