From 1236c0ce1baa58241c27349045f5ba1e59861564 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 16 May 2021 18:49:03 +0200 Subject: runjobsparallel.in: style: ps | grep -> pkill -0 --- runjobsparallel.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runjobsparallel.in b/runjobsparallel.in index 761aeee..95f6f59 100755 --- a/runjobsparallel.in +++ b/runjobsparallel.in @@ -33,7 +33,7 @@ do maxErr=0 for ((i=0; i<${#errFiles[@]}; i++)) do - ps aux | awk '{print $2}' | grep -q "^${pids[${i}]}\$" && laeuftNoch=true || laeuftNoch=false + pkill -0 "${pids[${i}]}" && laeuftNoch=true || laeuftNoch=false if [ -r ${errFiles[${i}]} ] then -- cgit v1.2.3-54-g00ecf