There is a daemon process listening on port 5144, which I cannot to modify.
I want to use netcat to send the contents of a text file to the server, but this causes
netcat to hang the terminal until I press Ctrl+C:
cat file.txt | nc -u 127.0.0.1 5144
The only way I am able to get it to work is by running
nc -u 127.0.0.1 5144 and copy/pasting the contents of the file manually.
cat file.txt | ...leads to
bash: ...: command not foundand I can continue to use the terminal
nc -u 127.0.0.1 5144 < file.txtleads to the same behavior as using | above