![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| create a shell script that calls another script and and an awk script | magikminox | Shell Programming and Scripting | 0 | 06-26-2008 02:50 AM |
| Shell Script: want to insert values in database when update script runs | ring | Shell Programming and Scripting | 1 | 10-25-2007 03:06 AM |
| Include xhost + at auto reboot script | KhawHL | Shell Programming and Scripting | 0 | 12-07-2006 12:14 AM |
| Auto answer ( Yes or No) from unix script | Nayanajith | Shell Programming and Scripting | 3 | 08-22-2006 01:29 AM |
| Auto Alias Script | coolboarderguy | Shell Programming and Scripting | 3 | 12-25-2005 09:11 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Shell Script to Auto Run PHP Script
Hello All!
I am looking to build a monitoring script. The script should always run as a system service of some type and should always check that a PHP script is running. Maybe there is a way to assign a PHP script to a certain PID so that the monitor script that check for the PID in top and then if the PID does not exist, then have it run the PHP script. Basically, I have built a PHP script the constantly monitors two sets of databases to verify that they remain the same and if one DB changes it writes it to the other. There are MANY MANY reasons for it be done this way versus other possible ways. Mainly because of other functions this script does that due to lots of fun legal paperwork I can't disclose. So, all in all... Need a bash/shell script that will constantly check for my PHP script to make sure it is running and make it run if it doesn't exist. I'm just tired of having a putty window open and my internet dieing and killing the script. Any help or pointing in the right direction would be of tremendous help. Thank you for your time!!! |
| Bookmarks |
| Tags |
| keepalive, monitor, php, script, shell, shll |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|