LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-25-2003, 12:49 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
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.

Last edited by J_Szucs; 09-25-2003 at 12:50 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
Executing a command on every file in a directory asciimonster Linux - Newbie 2 06-14-2004 04:46 AM
Problem executing from command line jleyba213 Linux - General 4 04-09-2004 01:43 PM
executing from command line nodger Linux - Newbie 3 01-20-2004 11:30 AM
PostgreSQL (or just SQL) question jacksmash Programming 6 12-30-2003 11:46 AM


All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration