Hi,
I'm trying to write a shell script which logs in to postgres, executes a file filled with SQL commands (and in an ideal world would write output/errors to a file) and then exits postgres. I can't get the script to do anything else than log into the database.
I'm new to unix, so apols if this is a really easy problem,
Thanks,
Fraser
I'm trying to write a shell script which logs in to postgres, executes a file filled with SQL commands (and in an ideal world would write output/errors to a file) and then exits postgres. I can't get the script to do anything else than log into the database.
I'm new to unix, so apols if this is a really easy problem,
Thanks,
Fraser