Re: using vacuumdb in crontab - Mailing list pgsql-admin

From Cris Carampa
Subject Re: using vacuumdb in crontab
Date
Msg-id bpcjgp$mmd$1@panco.nettuno.it
Whole thread Raw
List pgsql-admin
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?

Sorry. Problem solved.

export PGPASSWORD=<passwd>

Kind regards,

--
Cris Carampa (spamto:cris119@operamail.com)

"Poveri fanatici comunisti, noglobal e affetti dalla sindrome
anti-microsoft" (gli utenti Linux secondo un poster di ICOD)


pgsql-admin by date:

Previous
From: Gaetano Mendola
Date:
Subject: Oracle -> Postgres migration stories
Next
From: Cris Carampa
Date:
Subject: using vacuumdb in crontab