Merge branch 'master' of git.xw3.org:hanez/home

This commit is contained in:
Johannes Findeisen 2025-02-18 20:42:26 +01:00
commit 0efcae11cd
4 changed files with 33 additions and 8 deletions

16
bin/procfiles.sh Executable file
View file

@ -0,0 +1,16 @@
#1/bin/bash
PROCNAME=$1
if [ -z "${PROCNAME}" ]; then
echo "Please set proc name!"
exit 1
fi
PROCFILES=$(ps -C $1 -o pid=)
for proc in ${PROCFILES}; do
echo $proc
ls -l /proc/$proc/fd
done