pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guthrie, John <JGuthrie@air.org>
To: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall in crontab doesn't work
Date: Tue, 2 Jul 2002 08:09:00 -0400
Message-ID: <F779B05379CAD2118BD20090273017BF03E79C7D@DC1> (raw)

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.

john guthrie

-----Original Message-----
From: Werner Modenbach [mailto:modenbach@alc.de]
Sent: Tuesday, July 02, 2002 3:51 AM
To: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] pg_dumpall in crontab doesn't work


Nils Höglund wrote:

> 
>> 05 22 *  *  1-5 postgres /usr/bin/pg_dumpall -D > 
>> /disks/postgres/db.pg_dumpall
>> connected to template1...
>> /usr/bin/pg_dumpall: 0: Bad file descriptor
> 
> Filedescriptor 0 is STDIN. I would guess pg_dumpall want's to read 
something
> from stdin, pherhaps ask you a question?
> 
But it doesn't ask in interactive (shell) mode.



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly






view thread (8+ messages)  latest in thread

Message-ID: <F779B05379CAD2118BD20090273017BF03E79C7D@DC1>
Permalink:  ../F779B05379CAD2118BD20090273017BF03E79C7D@DC1/
Also on:    postgresql.org/message-id/F779B05379CAD2118BD20090273017BF03E79C7D@DC1

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: JGuthrie@air.org
  Subject: Re: pg_dumpall in crontab doesn't work
  In-Reply-To: <F779B05379CAD2118BD20090273017BF03E79C7D@DC1>
  References: <F779B05379CAD2118BD20090273017BF03E79C7D@DC1>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox