Re: script variables

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: script variables
Дата
Msg-id 42369B74.20604@archonet.com
обсуждение исходный текст
Ответ на script variables  (Paul Cunningham <paulcunningham@sprintmail.com>)
Список pgsql-general
Paul Cunningham wrote:
> I use a bash script (similar to following example) to update tables.
>
> psql -v passed_in_var=\'some_value\'  -f script_name ....
>
> Is it possible to pass a value back from psql to the bash script?

You can pass the textual output of psql back with backticks:
  echo `psql ...`

--
   Richard Huxton
   Archonet Ltd

В списке pgsql-general по дате отправления: