LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Command to list all the databases on a system (https://www.linuxquestions.org/questions/linux-software-2/command-to-list-all-the-databases-on-a-system-795926/)

Shreerang Patwardhan 03-16-2010 10:49 PM

Command to list all the databases on a system
 
Hey all,
I was wondering if there is any linux command to list all the databases on the system. I have PostgreSQL databases on my system. I can list them through the psql console, but I cannot do that in a shell script. Hence the need for a linux command.

Thanx in advance.
Cheers!!!

Shreerang.

alunduil 03-16-2010 10:57 PM

You'll have to call the console from a bash script to get the behaviour you want.

Regards,

Alunduil

michaelk 03-17-2010 12:06 AM

psql -l
http://www.sbras.ru/cgi-bin/www/unix...sql-man?psql+1


All times are GMT -5. The time now is 07:04 PM.