Skip site navigation (1) Skip section navigation (2)

Re: trouble with pg_dumpall

From: Steve Holdoway <steve(dot)holdoway(at)firetrust(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: trouble with pg_dumpall
Date: 2008-02-28 03:33:41
Message-ID: 20080228163341.e7fc28b8.steve.holdoway@firetrust.com (view raw or flat)
Thread:
Lists: pgsql-admin
On Wed, 27 Feb 2008 17:12:40 -0800
"Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu> wrote:

Here's your problem.
>   . .bashrc

You have an extremely minimal environment when running from cron, and you certainly *aren't* running from the home directory of the relevant user. You need to set up your PATH and HOME manually, and cd to your home directory before sourcing .bashrc for this to work.

. ~/.bashrc *might* work, but it's better to be specific (:

hth,

Steve

-- 
Steve Holdoway <steve(dot)holdoway(at)firetrust(dot)com>

In response to

Responses

pgsql-admin by date

Next:From: Jeff FrostDate: 2008-02-28 03:41:09
Subject: Re: trouble with pg_dumpall
Previous:From: Tena SakaiDate: 2008-02-28 03:12:34
Subject: Re: trouble with pg_dumpall

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group