pg_dump error codes

From: alexandre - aldeia digital <alexandre(at)ad2(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_dump error codes
Date: 2006-01-02 10:45:28
Message-ID: 43B90448.6050609@ad2.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

(maybe an idiot question)

In my Linux bash backup scripts, I wish to send an e-mail when an error
occurs in pg_dump proccess. And if possible, I want to send the error
output via e-mail.

Anybody knows how to capture the output and send this to an e-mail ONLY
if an error occurs ?

Thanks

Alexandre

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Zlatko Matić 2006-01-02 10:51:29 Re: POstgreSQL 8.1.X/Lazarus?
Previous Message Marc Mamin 2006-01-02 10:18:53 Casting issue with aggregated function