Added bin/procfiles.sh

This commit is contained in:
Johannes Findeisen 2025-02-18 03:24:06 +01:00
commit ac69026fa3
2 changed files with 18 additions and 1 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