diff --git a/installer/spk/scripts/start-stop-status b/installer/spk/scripts/start-stop-status index 00b9da81..e7b3f44c 100644 --- a/installer/spk/scripts/start-stop-status +++ b/installer/spk/scripts/start-stop-status @@ -29,8 +29,8 @@ case "$1" in ;; log) - # Select most recently modified log file (Caveats: the path of the log file must not contain spaces) - find "$APP_ROOT/data" -name "*.log" -type f -print0 | xargs -0 ls -Alt1 | head -n 1 | awk '{print $7}' + # select most recently modified log file + find "$APP_ROOT/data" -name "*.log" -type f -print0 | xargs -0 ls -Alt1 | head -n 1 | sed -e 's/\s\+/\s /g' | cut -d' ' -f7- exit 0 ;;