Skip to content
Snippets Groups Projects
Commit 34e3e59f authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

sort: write failed: 'standard output': Broken pipe

parent 6bb5fc82
No related branches found
No related tags found
1 merge request!174sort: write failed: 'standard output': Broken pipe
......@@ -26,12 +26,13 @@
# 2022-03-10 v1.7 <axel.hahn@iml.unibe.ch> add cli param -p; update help
# 2023-02-13 v1.8 <axel.hahn@unibe.ch> shell fixes
# 2023-07-28 v1.9 <axel.hahn@unibe.ch> update help page
# 2023-09-14 v1.10 <axel.hahn@unibe.ch> fix sort: write failed: 'standard output': Broken pipe
# ======================================================================
. "$(dirname $0)/inc_pluginfunctions"
self_APPVERSION=1.9
self_APPVERSION=1.10
# ----------------------------------------------------------------------
# FUNCTIONS
......@@ -152,7 +153,11 @@ grep -E "^(Mem|Cache|Buffers|Swap|Slab|SReclaimable)" "/proc/meminfo"
if [ $ramUsage -gt $iMinRamUsageToShowProcesses ]; then
echo
echo "RAM usage is higher $iMinRamUsageToShowProcesses percent ... showing most consuming processes:"
ps aux | head -1; ps aux | sort -nrk 4 | head -n 5
ps aux | head -1
# sort: write failed: 'standard output': Broken pipe
# ps aux | sort -nrk 4 | head -n 5
ps aux | sort -nrk 4 | sed -n "1,5p"
fi
# --- performance data
......
......@@ -29,7 +29,7 @@ This plugin sends all values as performance data.
______________________________________________________________________
CHECK_MEMORY
v1.9
v1.10
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment