Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm trying to create something that will periodically send messages to a serial device using socat, take the response from the device and format it, then take the formated data and send it out UDP to a specific IP/Port.
I tried to do something along the lines of
socat <readline> <serial device> | parse script/program | socat -u <readline> <UDP:IP:Port> but didn't have any success.
I'm trying to create something that will periodically send messages to a serial device using socat, take the response from the device and format it, then take the formated data and send it out UDP to a specific IP/Port.
I tried to do something along the lines of
socat <readline> <serial device> | parse script/program | socat -u <readline> <UDP:IP:Port> but didn't have any success.
What address type are you using for the serial port, 2nd argument of first command?
What messages/effects are you experiencing that make you say it does not work? Are you expect the first socat instance to read from the terminal and write to the serial port? Where do you expect the format.sh script to be reading its data from?
What address type are you using for the serial port, 2nd argument of first command?
What messages/effects are you experiencing that make you say it does not work? Are you expect the first socat instance to read from the terminal and write to the serial port? Where do you expect the format.sh script to be reading its data from?
What I would like to happen is for there to be a connection between the terminal and my serial device so that I could send it commands. Let's say "list gps" returned to me the coordinates of my device.
I would like to repeatedly send the command "list gps" to my serial device, have the response message go as input to my format.sh script/program then have the output of that program be sent out UDP to a specific port/ip. The communication between the output of my formating script and the UDP IPort is only 1 way, which was why I included the -u
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.