Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send datagram over UDP in shell 2

Status
Not open for further replies.

peterneve

Programmer
Jan 24, 2002
50
GB
Is there a simple way to send some data over UDP from a shell script for UNIX?

Thanks in advance!
 
Hi

[tt]bash[/tt] can send by own forces :
man bash said:
Bash handles several filenames specially when they are used in redirec-
tions, as described in the following table:
[gray](...)[/gray]
/dev/udp/host/port
If host is a valid hostname or Internet address, and port
is an integer port number or service name, bash attempts
to open a UDP connection to the corresponding socket.

Feherke.
 
Thanks. In the end I have used netcat. Amazing little tool.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top