Skip site navigation (1) Skip section navigation (2)

LINE COMMAND

From: Felipe Lopes <felipelopess(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: LINE COMMAND
Date: 2010-08-16 14:03:49
Message-ID: AANLkTi=G4vFo5UtBhDXVsj7OA0S4q-eHv6stFHw6F1tE@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
I would like to run a line command (psql) with the supplied password without
pausing the command, but this option is not available:

psql --username=root --password=root my_bd < "script.sql"

The pass only can be informed after execution, pausing the command:

psql --username=root --password my_bd<script.sql
Senha para usu├črio root: ****

Thanks.

-- 
Felipe L.

Responses

pgsql-bugs by date

Next:From: Mike FowlerDate: 2010-08-16 14:47:01
Subject: Re: LINE COMMAND
Previous:From: Mariusz MajerDate: 2010-08-16 07:54:44
Subject: Re: BUG #5614: Varchar column (with DEFAULT NULL) stores 'UL' value instead of null

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group