Is posible to do the same (or similar) in a var directly, inside a C program?
cu -l /dev/ttyACM0 -s 9600 > variable ?
I have trying this withs pipes, but i dont know how to adress te port to a pipe.
Also i have tried with function read, fgets, etc.. but I don't why, it doesn't works, just write.
there is no response when I try to close the pipe. Not Disconnected, and so i can't write one more time.
I'm trying to do this, because I need a bidirectional pipe , and the only way I know to do this is to: open to write -- > close --> open to read ---> close and another time the same
BUt pclose function failed in read mode .
thank you