Terminal command to send data (plain text string) to a port at a remote computer.
Posted
by
Eddy
on Super User
See other posts from Super User
or by Eddy
Published on 2010-12-23T02:49:57Z
Indexed on
2010/12/23
2:56 UTC
Read the original article
Hit count: 347
I am trying to send data (plain text string) to a port at a remote computer using terminal utility. The string would be used to trigger something on the remote computer running a program that would listen to that specific port.
I used netcat command and tried a few combination of the following but can't seem to get the parameter right. Can someone point me out where am I doing wrong?
eddy-2:Desktop eddy$ nc IPADDRESS PORT > woc.txt eddy-2:Desktop eddy$ nc IPADDRESS PORT < woc.txt
P.S: woc.txt contains plain text string of the said command.
Edit: I am trying to send a string from OSX to Windows XP where the specific port is open by default.
© Super User or respective owner