blob: d51fbaba45d673b0017264b90728f7b9c0731222 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
ppid() {
printf "$(ps -o ppid= -p $1)" | xargs
}
gppid() {
PARENT=$(ps -o ppid= -p $1)
GRANDPARENT=$(ps -o ppid= -p $PARENT)
printf "$GRANDPARENT" | xargs
}
$@
|