Lines Matching refs:proc
15 proc=$!
16 echo "# Process created with id: $proc"
19 proc_parent=`cat /proc/${proc}/stat | awk '{ print $4 }'`
20 echo "# Parent Process id of $proc is $proc_parent"
23 testing "pgrep pattern" "pgrep yes" "$proc\n" "" ""
24 testing "pgrep wildCardPattern" "pgrep ^y.*s$" "$proc\n" "" ""
25 testing "pgrep -l pattern" "pgrep -l yes" "$proc yes\n" "" ""
26 testing "pgrep -f pattern" "pgrep -f yes" "$proc\n" "" ""
27 testing "pgrep -n pattern" "pgrep -n yes" "$proc\n" "" ""
28 testing "pgrep -o pattern" "pgrep -o yes" "$proc\n" "" ""
29 testing "pgrep -s" "pgrep -s $session_id yes" "$proc\n" "" ""
30 testing "pgrep -P" "pgrep -P $proc_parent yes" "$proc\n" "" ""
108 proc=$!
109 proc_p=`cat /proc/${proc}/stat | awk '{ print $4 }'`
116 proc=$!
117 proc_parent=`cat /proc/${proc}/stat | awk '{ print $4 }'`