Server Fault is a question and answer site for system and network administrators. 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 haven't needed anything like this before but I'm sure something exists. I'm looking for a compiled Windows executable (i.e. noninterpreted language) that I don't need to write that can read the arguments passed in on the command line, open an TCP network socket to another machine, and pass the arguments along.

Has anyone used something like this before?

re: netcat for windows: Yeah, basically. Problem is I'm trying to get data out of a WhatsUp installation and onto another box as events are triggered. I can't specify a full command line, just an executable and as a separate field the arguments to pass in, so I can't do any pipe tricks.

AFAIK netcat can only read data from STDIN or a pipe, but there's no way to specify the data as a command line argument. man page seems to support this. Am I mistaken?

share|improve this question
You can always have the executable be a batch file that does something like this. "echo alert data | nc [options]" – 3dinfluence Apr 28 '10 at 23:24
That batch file command should have been "echo %* | nc [options]". That will pass all the arguments that WhatsUp passes to the executable to netcat. – 3dinfluence Apr 28 '10 at 23:56
Actually, that might be doable. Always forget about good 'ol .bat. – Oesor Apr 29 '10 at 4:42
up vote 2 down vote accepted

It sounds like you basically you want netcat for Windows. And it looks like someone ported it here.

share|improve this answer
It exists, and I've used it. Unfortunately every antivirus product on the market will flag it as malware, so you'll have to add an exception to use it. – sysadmin1138 Apr 28 '10 at 19:16
You could try ncat from nmap 5.0+. – Gerald Combs Apr 28 '10 at 19:26
Somewhat. I've edited in my reservations about netcat. – Oesor Apr 28 '10 at 19:32

psexec from Sysinternals will execute on a remote host.
or use hyperterm or telnet to send the data to a specific port.

share|improve this answer
Unless that host isn't Windows. – Oesor Apr 29 '10 at 4:39
Oh.. Now I understand. Then I guess you would have to script the telnet command on the windows box. I guess it looks like syslogish kind of deal,. – ggonsalv Apr 29 '10 at 11:39

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.