Seems the only way that I can read ascii text coming accross /dev/ttyS0 is with a gui-type of serial console.
I need to do this with a shell script similiar to...
#!/bin/sh
cat /dev/ttyS0 > myFile.txt
...putting the output into a text file. Like I said, only gui programs seem to work. I guess I need to be able to initialize and/or open my serial port in my script. I've tried every setserial, stty options but nothing seems to work.
Thanks for any help.
I need to do this with a shell script similiar to...
#!/bin/sh
cat /dev/ttyS0 > myFile.txt
...putting the output into a text file. Like I said, only gui programs seem to work. I guess I need to be able to initialize and/or open my serial port in my script. I've tried every setserial, stty options but nothing seems to work.
Thanks for any help.