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