Re: Calling psql from a bat file on windows?

From: "Oisin Glynn" <me(at)oisinglynn(dot)com>
To: "Todd Lewis" <lewis-todd(at)sbcglobal(dot)net>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Calling psql from a bat file on windows?
Date: 2005-02-04 14:18:47
Message-ID: 008101c50ac4$7478d1b0$a974fea9@homisco.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

windows 2000.

----- Original Message -----
From: "Todd Lewis" <lewis-todd(at)sbcglobal(dot)net>
To: <pgsql-novice(at)postgresql(dot)org>
Sent: Thursday, February 03, 2005 22:25
Subject: Re: [NOVICE] Calling psql from a bat file on windows?

> 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
> >
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Arthur van Dorp 2005-02-04 14:29:26 Re: Using a preprocessor for constants in SQL
Previous Message Arthur van Dorp 2005-02-04 14:06:50 Re: Using a preprocessor for constants in SQL