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
psql db -f sql.sql > /dev/null