Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Sometimes telnet is used for testing non telnet servers such as HTTP or SMTP servers where the TELNET protocol usually stays out of the way. However, I think I have run into a case where it is in the way while debugging a TCP server. I ran

telnet localhost < data_file

And the data the server receives is different than what is in the file.

Is there either an option to telnet or a whole nother command that I can use?

If it has to be installed separately, then I don't want it. I will just do without.

share|improve this question
up vote 4 down vote accepted

Well, actually it's called netcat and is Not a built-in for Solaris. But you have another option if you use bash or zsh (or may be something else):

man bash:

Bash handles several filenames specially when they are  used
in redirections, as described in the following table:
          If host is a valid hostname or  Internet  address,
          and  port  is  an  integer  port number or service
          name, bash attempts to open a  TCP  connection  to
          the corresponding socket.
share|improve this answer
That is nice to know about bash and /dev/tcp. I don't see the capability of a two way connection though, but I expect this will be helpful down the road,, and for the more needy cases, I will just write my own script. – George Bailey Jul 6 '11 at 14:54

I guess netcat? There's a package here. But it isn't provided by Sun default. Do you have something against packages?

share|improve this answer
Yes, it is temporary until a new plan is in place for server configuration management. Right now, everything needs to stay put. – George Bailey Jul 6 '11 at 14:57
IMHO, a well-documented list of installed packages will work just as well for management purposes. And I would say that the benefit of using the extensive GNU tools that aren't available in a base install on Solaris outweighs the benefits of using a completely base system. But that's definitely your choice to make :) – Michael Lowman Jul 6 '11 at 14:59

Maybe tcpdump? But since it is obviously not important...

share|improve this answer
I guess your haven't attentively read the question. – poige Jul 6 '11 at 14:17

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.