From: Silvio Rhatto Date: Sat, 6 Oct 2018 23:30:43 +0000 (-0300) Subject: Status: check for spool file X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0bc3d6b5d3aded05f8e241769470360b8c939f62;p=scripts.git Status: check for spool file --- diff --git a/status b/status index e242609..7242193 100755 --- a/status +++ b/status @@ -102,6 +102,11 @@ function status_run { # Alarms set #xalarm list + # Check for spool files + if [ -e "$HOME/temp/log/spool.md" ] && [ "`wc -l $HOME/temp/log/spool.md`" != "0" ]; then + echo "Spool file not empty: $HOME/temp/log/spool.md" + fi + # Check if are dangling downloaded files if [ -e "$HOME/load" ] && [ ! -z "`ls -1 ~/load/`" ]; then # Print a newline if needed depending of the output of the previous commands