Subject Re: [firebird-support] how to auto quit a non-interactive session ?
Author Miguel Rozsas
Thanks for answering my question, but no, it didn't worked.

echo show table\; | /usr/bin/isql-fb ....

is still hunging after showing all tables in database. The command prompt
does not return and I have to kill the process in background.






2018-06-26 18:29 GMT-03:00 Dimitry Sibiryakov sd@...
[firebird-support] <firebird-support@yahoogroups.com>:

> 26.06.2018 15:05, Miguel Rozsas miguel@... [firebird-support]
> wrote:
> > echo "show tables;" | /usr/bin/isql-fb -user whatever -pas whatever
> > machine:dbalias
> >
> > The problem with the above is the connection is not closed and the end of
> > sql statement and it is still waiting a quit which never comes.
>
> Remove quotes around SQL command and escape semicolon. It is exactly
> way how isql is
> used during server build: echo create database \'$(SECURITY_TMP)\'\; |
> $(RUN_ISQL)
>
>
> --
> WBR, SD.
>
>
> ------------------------------------
>
> ------------------------------------
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://www.firebirdsql.org and click the Documentation item
> on the main (top) menu. Try FAQ and other links from the left-side menu
> there.
>
> Also search the knowledgebases at http://www.ibphoenix.com/
> resources/documents/
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ------------------------------------
>
> Yahoo Groups Links
>
>
>
>

--
Ápice Sistemas de Energia Ltda
PABX: (19) 3754-5000

Visite nosso website:
www.apice.com.br <http://www.apice.com.br>

Esta
mensagem eletrônica pode
conter informações privilegiadas e/ou
confidenciais, portanto fica o seu
receptor notificado de que qualquer
disseminação, distribuição ou cópia
não autorizada é estritamente
proibida. Se você entende que recebeu esta
mensagem indevidamente ou por
engano, por favor informe este fato ao
remetente e a apague de seu
computador.


[Non-text portions of this message have been removed]