#!/bin/sh

PGHOME=/usr/local/pgsql813
PGHOST=localhost
PGPORT=8080
GSCNAME=gsc


export PATH=${PGHOME}/bin:$PATH

psql -t -A -h ${PGHOST} -p ${PGPORT} \
  -c 'select count(*) from forest_server where status=-1' \
  ${GSCNAME};


