7 lines
380 B
Bash
Executable File
7 lines
380 B
Bash
Executable File
#!/bin/bash
|
|
# V31 batch generator - Opus WIRE doctrine 13+7 - Skill: pg-db-count
|
|
# Description: PG databases count
|
|
# Whitelist-safe timeout 8s
|
|
set +e
|
|
timeout 8 bash -c "PGPASSWORD=admin123 psql -h 10.1.0.3 -U admin -d postgres -tAc 'SELECT count(*) FROM pg_database WHERE datistemplate=false' 2>&1" 2>&1 || echo "{\"skill\":\"pg-db-count\",\"error\":\"timeout_or_missing_tool\"}"
|