Joe:
See below:
> -Original Message-
> Date: Tue, 2 Jan 2007 19:16:33 + (UTC)
> From: Joe M <[EMAIL PROTECTED]>
> Subject: [Tutor] basic python question/getting values
> To: tutor@python.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: TEXT/PLAIN
Thanks. I appreciate the quick response. I am going to kick myself for
this one ;)
On Tue, 2 Jan 2007, Asrarahmed Kadri wrote:
> Date: Tue, 2 Jan 2007 19:38:04 +
> From: Asrarahmed Kadri <[EMAIL PROTECTED]>
> To: Joe M <[EMAIL PROTECTED]>
> Subject: Re: [Tutor] basic
Joe M wrote:
> I have a few scripts that will return a value ie here I am testing to see
> if a database is alive (script is called dbping.py):
>
> def db_alive():
> dbRunning = '0'
> try:
> con = pg.connect(dbname='xxx', host='localhost', user
> ='xxx',port = xxx)
>
I apologize in advanced as I know this is basic information, but I cannot
seem to figure it.
I have a few scripts that will return a value ie here I am testing to see
if a database is alive (script is called dbping.py):
def db_alive():
dbRunning = '0'
try:
con =