I am running a script on my PostgreSQL server:
psql db -f sql.sql
from bash or in a cron script.
bash
cron
It keeps
Here's another option. It does have the advantage that you don't have to remember psql option names, etc.
psql ... | cat