fuser

identify processes using files or sockets

copy
0
0
if fuser -s /dev/ttyS1; then :; else something; fi invokes

source | details |