How can I send input to /dev/ttyUSB0 and get its output. I'm trying to do this in bash script. Any ideas?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
closed as not a real question by dunxd, HopelessN00b, Michael Hampton, mdpc, voretaq7♦ Dec 4 '12 at 3:13
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
I solved this problem using pyserial library of python. |
|||
|
|
screen /dev/ttyUSB0COMMANDoutputexit screenIn such case I can do it with screen but I need a script to do it. – denizeren Dec 3 '12 at 8:54