I'm on Windows 7 Powershell and have ncat from http://nmap.org/ncat/
I'm trying to send "foo" to some network device
PS> ncat -u 192.168.1.255 6061 foo
but it sends "foo\n" (66 6f 6f 0a) and the line-feed makes the device not recognize the command.
there's a -C option to add a carriage return, but that's no help.
I made a text file containing "foo" and did
PS> cat .\test.txt | ncat -u 192.168.1.255 6061
but that also adds CRLF