Incomplete netcat functionality after update (send UDP message)

Hey guys,

I've been using netcat on OpenWRT for a while now to send messages to my home automation via UDP. I've done this using the following command:

nc -u -w1 -c  192.168.1.8 5678 < /tmp/example.txt

since I've updated some packages the command isn't acceptet anymore. It seems like the netcat version installed doesn't support the arguments:

root@OpenWrt:~# nc -u -w1 -c  192.168.1.8 5678 < /tmp/example.txt
BusyBox v1.28.4 () multi-call binary.

Usage: nc [IPADDR PORT]

Open a pipe to IP:PORT
root@OpenWrt:~# 

Can anybody tell me how to install another nc version or another way to send messages via UDP?

The easy way in can be done in bash doesn't work with ash either:

root@OpenWrt:~# echo "test" >/dev/udp/127.0.0.1/1234
-ash: can't create /dev/udp/127.0.0.1/1234: nonexistent directory

Okay I just solved it myself by writing netcat instead of nc. I understand now that nc accesses the netcat version included in BusyBox, which wasn't there before the update.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.