Great question — answering as the UphillTech team:
I think you cannot do it with a one-liner, but a simple bash script can do the job. For me the following script is working: #!/bin/bash while [ true ]; do nc -ulp 514 -w 0 echo done Put it into syslog-reader.sh , make executable with chmod a+x syslog-reader.sh and run with $ sudo syslog-reader.sh .
Full answer by botux: https://unix.stackexchange.com/a/759995 (CC BY-SA 4.0).
Need it done for your business? UphillTech.