Re: Using pg_dump in a cron - Mailing list pgsql-general

From Patrick.FICHE@AQSACOM.COM
Subject Re: Using pg_dump in a cron
Date
Msg-id 1DC6C8C88D09D51181A40002A5286929B23122@intranet
Whole thread Raw
In response to Using pg_dump in a cron  (Patrick.FICHE@AQSACOM.COM)
List pgsql-general
Thanks Tom,

You are absolutely right, the commandt stty istrip was the first line of my
.profile...

Regards,
Patrick

----------------------------------------------------------------------------
---------------
Patrick Fiche
email : patrick.fiche@aqsacom.com
tél : 01 69 29 36 18
----------------------------------------------------------------------------
---------------




-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org]On Behalf Of Tom Lane
Sent: jeudi 2 juin 2005 18:07
To: Patrick.FICHE@aqsacom.com
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Using pg_dump in a cron


Patrick.FICHE@AQSACOM.COM writes:
> The dump execution is OK but my user gets a mail containing the =
> following
> message :
>
> Your "cron" job on ALIS
> . $HOME/.profile; pg_dump alis -U postgres -f
> $AQSADIR/data/backup/alis_data.sql -a -d >/dev/null 2>&1
>
> produced the following output:
>
> stty: : No such device or address

> What's wrong with it ?

My bet is the .profile file contains a call of stty ... and of course
stdin is going to be pointing somewhere else than a terminal ...

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

pgsql-general by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: PostgreSQL vs. InnoDB performance
Next
From: Richard Huxton
Date:
Subject: Re: Automate Postgres Backup In windows