Command line output to TCP/UDP port

27 Oct 2009

traceroute > /dev/tcp/localhost/9999

This simple command in the mac terminal, linux, or unix will take the output of the traceroute command and send it over port 9999 using TCP to the localhost. At first I was very exciting about this thinking it would leverage the power of the command line to give additional functionality to things like Max/MSP but that was until I learned Max had a 3rd party 'shell' object. Oh wells, still really cool and worth putting in the toolbox.