Files
html/api/v76-scripts/skill-log-errors-count.sh

7 lines
308 B
Bash
Executable File

#!/bin/bash
# V27 V89 scale - Opus WIRE continue - Skill: log-errors-count
# Description: Recent error log lines
# Whitelist-safe timeout 8s
set -e
timeout 8 bash -c 'tail -50 /var/log/nginx/error.log 2>/dev/null | wc -l' 2>&1 || echo "{\"skill\":\"log-errors-count\",\"error\":\"timeout_or_missing_tool\"}"