Saturday, 31 October 2015

Free a Busy TTY Device

From terminal, run:

lsof | grep usbserial

If the port is in use, you will get a response like this (otherwise it will return nothing):

screen    27127 Sefi    5u     CHR               18,0        0t0       605 /dev/tty.usbserial

Note the session number. In my case, it's 27127. Then run:

screen -x 27127 (obviously use your session number from the grep)

It will return you to your previous screen session. Then use ctr-A ctr-\ to close it properly (will ask you to confirm).


source: https://discussions.apple.com/thread/6078814?tstart=0

No comments:

Post a Comment