If you're on a unix box, you could:
ps -aux | grep mysql

do that from an exec() or system() function.

Tyler

----- Original Message ----- 
From: "Manu Verhaegen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 8:08 AM
Subject: [PHP] automatic check if MySQL is running


How can i check of MySQL is running, i want to do this with cronn.
If MySQL is not running then i want to start it automatic.




Greeting,
    Manu



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to