[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Serial Port Problems



On 10/03/2014 03:33 PM, Dan Ritter wrote:
On Fri, Oct 03, 2014 at 08:43:50AM -0400, Ethan Rosenberg wrote:
Dear List -

I am trying to capture data from a serial port and write it to a file.

ethan@meow:/var/www$ cat /dev/ttyS0 > scale_value.html
cat: /dev/ttyS0: Device or resource busy


lsof /dev/ttyS0

(tells you what is holding that port open)

-dsr-


Dan -

Thanks.

root@meow:/var/www# lsof /dev/ttyS0
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
screen  28323 root    6u   CHR   4,64      0t0 1119 /dev/ttyS0

TIA

Ethan


Reply to: