0

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?

Oesor
  • 300
  • 1
  • 2
  • 16
  • 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 04:42

2 Answers2

2

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

3dinfluence
  • 12,449
  • 2
  • 28
  • 41
0

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

ggonsalv
  • 390
  • 1
  • 12