1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-07-06 05:09:34 +00:00
scripts/whoisplaying

9 lines
147 B
Plaintext
Raw Normal View History

2017-12-30 17:25:25 +00:00
#!/bin/sh
for i in /proc/[0-9]*/fd/*
do
var="$(readlink $i)"
if test x"$var" != x"${var#/dev/snd/pcm}"
then
echo $i
fi
done