LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   PostgreSQL: executing a .SQL file from command line? (http://www.linuxquestions.org/questions/linux-software-2/postgresql-executing-a-sql-file-from-command-line-96577/)

J_Szucs 09-24-2003 11:49 PM

PostgreSQL: executing a .SQL file from command line?
 
I have a .SQL file containing SQL queries that update a database.
I know how to run this file in the interactive mode of psql, but how to execute it from a bash command line?
I need this because I want to set it up as a scheduled task by cron.


All times are GMT -5. The time now is 02:00 AM.