Merge branch 'master' of git.xw3.org:hanez/home
This commit is contained in:
commit
0efcae11cd
4 changed files with 33 additions and 8 deletions
16
bin/procfiles.sh
Executable file
16
bin/procfiles.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue