LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   command with serial console (https://www.linuxquestions.org/questions/linux-hardware-18/command-with-serial-console-321925/)

xav78 05-10-2005 06:46 AM

command with serial console
 
I want to developp a real time application and I want to command my system with serial console.
The problem for me is to find a function that is non bloking my system. That's to say if a call the function it is able to see if there is an input or nothing and to execute ans pass to the next actions to do.

I used fgets but it wait for \n character so it is bloking if nothing

thanks for help

eantoranz 05-10-2005 09:08 AM

That sounds like a programming forum question. Anyway... maybe you have to fork the execution.


All times are GMT -5. The time now is 03:28 AM.