Questions tagged [pgpool]

1 questions
0
votes
1 answer

How to catch the error output in shell when error code is not enough?

I came across the script with if-else branch with a particular command succeed or not like this: pg_ctl -D /var/lib/pgsql/data -w promote if [ $? -ne 0 ]; then echo: failure exit 1 else echo: succeed exit 0 fi It looks straight forward.…
George Y
  • 528
  • 6
  • 16