mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
274 B
Bash
14 lines
274 B
Bash
11 years ago
|
#!/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
|