2

Note: I also posted this question on SuperUser, because I'm not sure where it belongs

I'm trying to establish a "console-like" connection with a National Instruments cRIO-FRC.

It broadcasts its console output onto 255.255.255.255, UDP port 6666. I can listen to it with:

$ socat UDP-RECV:6666,broadcast,reuseaddr -

It listens to commands on its IP address, UDP port 6668. I can send commands with:

$ socat - UDP-DATAGRAM:10.8.54.2:6668,broadcast,reuslsddr

However, these 2 commands run in separate terminals. I.e. I have to type into one, and view results in another window. Is there a way to concurrently run these two programs, or is there a more appropriate program to use other than socat?

  • Cross posting is a reason for closing your question on this site. If you want to keep it here, delete the question on SU, update your question here and announce that it was closed there. – Anthon Oct 11 '14 at 19:59
  • Where do you think is more appropriate for this? – Alexander Oct 11 '14 at 19:59
  • I have almost zero knowledge about what is going on on SU, the subject doesn't seem to be of topic here or there, but that doesn't say much about if/when you get an answer. There are also some people active here and on SU – Anthon Oct 11 '14 at 20:04
  • It's slightly more on-topic here than on SU. I'd close the SU one. – slm Oct 11 '14 at 22:00
  • Sorry, that likely won't work just like that, but man socat says: -u: unidirectional mode: first address is only used for reading, and the second address is only used for writing... Probably that's what you want, so you can also read and write to the terminal you're looking at as well. – mikeserv Oct 12 '14 at 0:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.