blob: f17630c96190667202857cbdee378ff33e6b0546 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
IN_PID=`cat`
if test "${IN_PID}" -gt 0 > /dev/null 2>&1 && \
kill -0 $IN_PID > /dev/null 2>&1; then
echo "== ps =="
ps uewww -p $IN_PID
echo "== lsof =="
lsof -p $IN_PID
else
echo "error: inaccessible process -- $IN_PID" > /dev/stderr
fi
|