Lines Matching refs:proc
15 proc=$!
19 proc_parent=`cat /proc/${proc}/stat | cut -d' ' -f4`
23 testing "pattern" "pgrep yes" "$proc\n" "" ""
24 testing "wildCardPattern" "pgrep ^y.*s$" "$proc\n" "" ""
25 testing "-l pattern" "pgrep -l yes" "$proc yes\n" "" ""
26 testing "-f pattern" "pgrep -f yes" "$proc\n" "" ""
27 testing "-n pattern" "pgrep -n yes" "$proc\n" "" ""
28 testing "-o pattern" "pgrep -o yes" "$proc\n" "" ""
29 testing "-s" "pgrep -s $session_id yes" "$proc\n" "" ""
30 testing "-P" "pgrep -P $proc_parent yes" "$proc\n" "" ""
32 testing "return success" "pgrep yes && echo success" "$proc\nsuccess\n" "" ""
37 kill -9 $proc