how to check that any /dev/ device file in use
Hi,
I want to know that how can i check that any say /dev/lp0 or /dev/dsp is in use by any other program? So that i cannot use it in my program? I mean i want to have check condition that check whether some other process is accessing that device file |
/usr/sbin/lsof | grep '/dev'
--- rod. |
hi,
Thanks |
All times are GMT -5. The time now is 12:14 PM. |