i have the equal(?) error:

#######
$ while true; do list_output=$(ps -eo nice,pid,pcpu,user,args | mawk
'{if ($1 != 0 && $3 > 0) {print $0; nlines++}} END { if (nlines == 0)
exit 1 }'); echo "${list_output}"; if [ -n "$list_output" ]; then break;
fi; date; sleep 1; done
Signal 18 (CONT) caught by ps (procps-ng version 3.3.9).
ps:display.c:66: please report this bug

Mo 19. Mär 10:19:44 CET 2018
Signal 18 (CONT) caught by ps (procps-ng version 3.3.9).
ps:display.c:66: please report this bug

Mo 19. Mär 10:19:45 CET 2018
Signal 18 (CONT) caught by ps (procps-ng version 3.3.9).
ps:display.c:66: please report this bug

Mo 19. Mär 10:19:46 CET 2018

Mo 19. Mär 10:19:47 CET 2018

Mo 19. Mär 10:19:48 CET 2018

Mo 19. Mär 10:19:49 CET 2018
#######

without pipe => no errors:

#######
$ while true; do list_output=$(ps -eo nice,pid,pcpu,user,args);
list_output=$(echo "$list_output" | mawk '{if ($1 != 0 && $3 > 0) {print
$0; nlines++}} END { if (nlines == 0) exit 1 }'); echo "${list_output}";
if [ -n "$list_output" ]; then break; fi; date; sleep 1; done

Mo 19. Mär 10:19:27 CET 2018

Mo 19. Mär 10:19:28 CET 2018

Mo 19. Mär 10:19:29 CET 2018
#######

os infos:

Debian GNU/Linux 8 (jessie)
Linux 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64
GNU/Linux

Reply via email to