Jon,

Not quite as simple as that. I can run the db application without any
problem, but the db files tend to fall over occasionally. I have a script
which cxhecks every 5 mins and boots them up if they are down. I'm looking
for a way to get them up if the db search detects that they are down. I can
do the detection bit, it's the getting the db file up and running bit I
can't do.

George

----- Original Message -----
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "'George Pitcher'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 4:44 PM
Subject: RE: [PHP] 'Running' a file from PHP script


> >
> > Basically I want to be able to test that the db is running and if it
isn't
> > then I want to 'run' it. Platform is NT, server is IIS4
> >
>
> It's a database, right? So surely it should be running as an NT service,
in
> which case it should be set to start automatically when the computer
starts.
> Your best bet to test for the existence is to try and connect to it with a
> known good username and password - if that fails, it's likely that the
> service isn't running.
>
> If it's not running automatically and all the time, then you don't have a
> database server, you have a computer that happens to have database
software
> installed on it, in which case you should change your ISP. You can't use
the
> key inside the locked box to unlock the box.
>
> Cheers
> Jon
>
>
> **********************************************************************
> 'The information included in this Email is of a confidential nature and is
> intended only for the addressee. If you are not the intended addressee,
> any disclosure, copying or distribution by you is prohibited and may be
> unlawful. Disclosure to any party other than the addressee, whether
> inadvertent or otherwise is not intended to waive privilege or
confidentiality'
>
> **********************************************************************


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to