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


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54309ef3.9040...@hygeiabiomedical.com

Reply via email to