X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4B3A1D1C50F for ; Wed, 19 Nov 2003 09:33:53 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 32767-09 for ; Wed, 19 Nov 2003 05:33:24 -0400 (AST) Received: from efapo1.efacec.pt (unknown [213.58.212.81]) by svr1.postgresql.org (Postfix) with ESMTP id 54E66D1D783 for ; Wed, 19 Nov 2003 05:33:20 -0400 (AST) Received: from rvieira (172.18.56.43 [172.18.56.43]) by efapo1.efacec.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XF6BVL0A; Wed, 19 Nov 2003 09:33:20 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Raquel Vieira To: pgsql-admin@postgresql.org Subject: Re: using vacuumdb in crontab Date: Wed, 19 Nov 2003 09:34:52 +0000 X-Mailer: KMail [version 1.2] References: In-Reply-To: MIME-Version: 1.0 Message-Id: <03111909345200.01002@rvieira> Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/347 X-Sequence-Number: 11334 I'm using the command vaccumdb like this: su - postgres -c "vacuumdb AgenteSIP" I don't need to introduce the password for postgres. I think thos is all you need. Raquel Vieira On Monday 17 November 2003 10:53 am, Cris Carampa wrote: > Sorry if this is a naive question. I'm using postgresql 7.2 on Linux > with password authentication. I wish to issue a vaccumdb command every > night via crontab. The problem is that vacuumdb always prompts for a > password. How can I pass the password to vacuumdb without having to > manually type it? > > Kind regards,