Re: pg_dumpall in crontab doesn't work

From: Werner Modenbach <modenbach(at)alc(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dumpall in crontab doesn't work
Date: 2002-07-02 13:45:36
Message-ID: afsaps$1k08$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Guthrie, John wrote:

> keep in mind that cronjobs don't get your login environment, so things
that
> work in interactive mode often fail in cron unless you make sure to set up
> the environment there too.
>
Thanks John,

actually I didn't know that :-(
In the meantime I added the "</dev/null" as proposed by Tom and it works
fine now :-))
Seems like pg_dump needs it. Maybe this can be improved in future?

- Werner -

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Brannen 2002-07-02 14:13:07 Re: pg_dumpall in crontab doesn't work
Previous Message Tom Lane 2002-07-02 13:43:05 Re: pg_dumpall -> database import -> user problem.