Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send message via TCP

Status
Not open for further replies.

SQLWilts

Programmer
Feb 12, 2001
651
GB
Hi,

Not sure if this is the right forum but...
I am trying to set up an alert system on our Windows servers. Scripting the alerts will come later, but I am currently in the position where we have a program sat on a server that monitors a port for messages (we have a number of servers that are monitored, but the customers won't pay for it to be rolled out to everyone).
Anyway, I want to send a message to port 5000 on this server. I have tried the following at the command prompt:
echo "Hello World" > telnet 1.1.1.1 5000
I am using a sniffer on a test server to see the message, but this doesn't appear to work - any ideas anyone?
 
Serbtastic,

I am assuming that we do as the Unix guys send a message using a similar syntax but it doesn't seem to work in Windows. All I want to do is send a simple on line string to a port on the server - as you quite rightly said, I think that there may be a daemon listening on the other end.
 
Its possible, but I need this to be an automated process, that may have to run in the middle of the night. If I need to use a series of connection strings, along with passwords, it will sit in plain text.

As I have said, our Unix guys use
echo "Hello World" ¦ telnet 1.1.1.1 5000
I am SURE that you can do a similar thing in Windows!
 
The version of netcat that runs on Windows is the original Hobbit code. The version GNU created has not been ported....yet.


pansophic
 
That's true. But even if it's not from GNU, that version does what I need.

chris

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top