Re: Script Problem

2005-12-17 Thread Matthew Seaman
Gerard Seibert wrote: I want to run a script from CRON that will check to see if MySQL is running, and if not, restart it. I have had a problem with MySQL shutting down unexpectedly. This is my first attempt at writing the script. #!/bin/sh if (`ps -wxuU mysql | grep -o mysqld_safe`)

Re: Script Problem

2005-12-17 Thread Paul Schmehl
--On December 17, 2005 2:13:04 PM -0500 Gerard Seibert [EMAIL PROTECTED] wrote: Using FreeBSD 5.4 Please do not laugh. I absolutely suck at writing scripts. Someday I might learn, but in the mean time, I need some assistance. I want to run a script from CRON that will check to see if MySQL