LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why can't I read in data from the serial port using a bash script? (http://www.linuxquestions.org/questions/linux-newbie-8/why-cant-i-read-in-data-from-the-serial-port-using-a-bash-script-194350/)

tjt 06-16-2004 07:42 PM

Why can't I read in data from the serial port using a bash script?
 
I'm trying to log any data coming over the serial port. I'm trying this:

% /dev/ttyS0/ > logfile

But it ain't working. I can write to the serial port ok, so I know that is all set up correctly. Does anyone know how to do this?

By the way, I'm doing this in a shell script, so I can't use minicom or any other terminal utility like that.

mascdman 06-17-2004 01:21 AM

Try
Code:

  tail -f /dev/ttyS0 >logfile
--mascdman


All times are GMT -5. The time now is 10:30 AM.