Re: Calling psql from a bat file on windows?

From: "Todd Lewis" <lewis-todd(at)sbcglobal(dot)net>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Calling psql from a bat file on windows?
Date: 2005-02-04 03:25:09
Message-ID: 42027A95.10060.9F38579@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Are you trying from dos or a flavor of unix?

> Ok,
>
> I want to call a sql expression( and or file) from a bat file and pipe the result to a text file. Sounds super simple.. I am trying to use psql but I cannot find a way of passing the password to this. I want to schedule the bat file from windows scheduler.
>
> How can I pass the password to psql without human interaction? Or is there a smarter way to acheive this?
>
> I did try searching for an answer but if there is a faq I should be reading point me there
>
> Oisin Glynn
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Fuhr 2005-02-04 03:51:15 Re: Temp table exists test??
Previous Message Tom Lane 2005-02-04 03:18:09 Re: Temp table exists test??