running psql in a cron job

From: Wei Weng <wweng(at)kencast(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: running psql in a cron job
Date: 2002-08-07 14:51:24
Message-ID: 1028731885.30770.2.camel@Monet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

My database has "local all password" as its HBA control.

Is there anyway to manipulate psql so that I can somehow put the
password also inside the command line so that I can run psql in a cron
job? (such as psql -c "VACUUM ANALYZE" -d my_data -U my_user)

Thanks

--
Wei Weng
Network Software Engineer
KenCast Inc.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Wei Weng 2002-08-07 15:01:09 Re: running psql in a cron job
Previous Message Yuri Gordienko 2002-08-07 14:29:16 Table is modified?