You can not do that using the latest official release of bash (currently 4.3.30 according to this page). Sh: /dev/udp/255.255.255.255/4000: Permission deniedĮdited following OP's clarification on the use case: GNU bash, version 4.1.11(2)-release (arm-ffp-linux-uclibc) Tested failing too on Bash from Conceptronic CH3SNAS (a NAS with 2 HDDs) installed via Fun_Plug: sh-4.1# bash -version Why is this happening and how could I solve it? GNU bash, version 4.3.11(1)-release (arm-unknown-linux-gnueabihf)ĭoing this via direct character sending to NIC instead of by using netcat or socat could be useful for some routers or embedded devices (like NAS) that have a rather modern Bash version, but don't allow (or it is awkward to achieve) installation of extra tools. GNU bash, versión 4.3.11(1)-release (i686-pc-linux-gnu)Īnd Ubuntu for RaspBerry Pi 2: bash -version
I am trying to send characters directly to the network stack as explained in this thread.Įven when the process work OK under CygWin (Windows), the same lines do fail on Ubuntu v14.04: sudo echo -e "\xff">/dev/udp/255.255.255.255/4000