Search Postgresql Archives

Re: psql scripting tutorials

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sep 10, 2008, at 2:46 AM, Artacus wrote:

Who else is doing something like this? Can psql access environmental variables or command line params? Or do I have to have my bash script write a psql script every time?


The psql \! command can execute shell commands. You can also use ``, e.g.

=> \echo `date`
Wed Sep 10 08:07:19 EDT 2008


John DeSoi, Ph.D.






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux