Skip to content
Snippets Groups Projects

prevent broken pipe message in journallog

Merged Hahn Axel (hahn) requested to merge 6669-warnings-in-journallog into master
2 files
+ 6
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 3
2
@@ -23,12 +23,13 @@
# 2022-08-29 v1.12 <axel.hahn@iml.unibe.ch> fix: replace pipe
# 2023-02-13 v1.13 <axel.hahn@iml.unibe.ch> small shell fixes
# 2023-07-27 v1.14 <axel.hahn@unibe.ch> update help page
# 2023-09-18 v1.15 <axel.hahn@unibe.ch> prevent broken pipe message in journallog
# ======================================================================
. $(dirname $0)/inc_pluginfunctions
export self_APPVERSION=1.14
export self_APPVERSION=1.15
# ----------------------------------------------------------------------
# functions
@@ -169,7 +170,7 @@ if [ $iUsed -gt $iMinCpuUsageToShowProcesses ]; then
echo "$topout" | sed -n "${iStart},${iEnd}p" | tr '|' ':'
echo
echo "output of ps:"
ps aux | head -1; ps aux | sort -nrk 3,3 | head -n 5 | tr '|' ':'
ps aux | head -1; ps aux | sort -nrk 3,3 2>/dev/null | head -n 5 | tr '|' ':'
echo
fi
Loading