
July 24th, 2011, 03:49 PM
|
 |
Wiser? Not exactly.
|
|
Join Date: May 2001
Location: Bonita Springs, FL
|
|
|
Have your cron job launch a shell script which checks if the process is running. If it is running, your shell script just exits without doing anything. If it is not running, your shell script would launch it.
There are various ways to test if a process is running. A most common one is to record the PID when launching the process in a file somewhere. Your shell script can then test if that file exists, and if so check the the process specified by that pid is still running using the ps command.
|