T06 · System Persistence
- Location
scripts/install.sh:54- Finding
Scheduled Jobs and Deployed Executables Survive Uninstallation
- Content
View full analysis
/dev/null 2>&1; then # 1) ClawHub status refresh (every 10 minutes) if command -v jq >/dev/null 2>&1; then EXIST_ID=$(openclaw cron list --json | jq -r '.jobs[]|select(.name=="PondDepth ClawHub status (10m)")|.id' | head -n 1) else EXIST_ID="" fi if [[ -n "${EXIST_ID:-}" && "${EXIST_ID}" != "null" ]]; then openclaw cron edit "$EXIST_ID" --every 10m --name "PondDepth ClawHub status (10m)" --description "Writes /ui/assets/clawhub-status.json for PondDepth B2 UX" --message "请运行命令并输出stdout:python3 $TASKS_DIR/ponddepth_clawhub_status.py" --model gpt-4o-mini --thinking minimal --timeout-seconds 60 --session isolated --no-deliver >/dev/null else openclaw cron add --every 10m --name "PondDepth ClawHub status (10m)" --description "Writes /ui/assets/clawhub-status.json for PondDepth B2 UX" --message "请运行命令并输出stdout:python3 $TASKS_DIR/ponddepth_clawhub_status.py" --model gpt-4o-mini --thinking minimal --timeout-seconds 60 --session isolated --no-deliver >/dev/null fi # 2) Companion metrics refresh (hourly) if command -v jq >/dev/null 2>&1; then EXIST_ID2=$(openclaw cron list --json | jq -r '.jobs[]|select(.name=="PondDepth companion metrics (hourly)")|.id' | head -n 1) else EXIST_ID2="" fi if [[ -n "${EXIST_ID2:-}" && "${EXIST_ID2}" != "null" ]]; then openclaw cron edit "$EXIST_ID2" --cron "0 0 * * * *" --tz UTC --name "PondDepth companion metrics (hourly)" --description "Generate /ui/assets/companion-metrics.json (XP/level)" --message "请运行命令并输出stdout:python3 $TASKS_DIR/ponddepth_companion_metrics.py --tz Asia/Shanghai" --model gpt-4o-mini --thinking minimal --timeout-seconds 120 --session ...[truncated 3557 chars]- Remediation
View remediation
