LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2010, 11:49 PM   #1
Shreerang Patwardhan
LQ Newbie
 
Registered: Mar 2010
Posts: 5

Rep: Reputation: 0
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.
 
Old 03-16-2010, 11:57 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

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

Regards,

Alunduil
 
Old 03-17-2010, 01:06 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,637

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
List databases in MySQL vital_101 Linux - Server 2 11-08-2006 07:26 PM
command to list all users of the system?? simi_544 Linux - Networking 9 09-29-2005 04:00 AM
Is there a command to list how many CPUs a system has? Locura Linux - General 2 02-25-2005 12:28 PM
can't see root file system with list command fr_baker Linux - General 10 06-07-2004 09:27 PM
How to get list of system users from command line? tictocdoc Linux - General 3 03-12-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration