in reply to Process Reliablity
If you need a quick hack, I can offer you two low level solutions (sort of). Assuming you are using some sort of unix, you might want to try this:
1. Use a wrapper script to start your program. It can restart it whenever the program crashed:
Advantage: the auto restart releaves you of checking all the time.#!/bin/sh while true do start_your_program sleep xxx done
2. You might grep through the process list to see if you program is running. This works if it has a sufficiently long and distinct name. Try on a shell:
orps aux | grep your_program_name | grep -v grep | wc -l
depending on which unix flavour you use.ps -ef | grep your_program_name | grep -v grep | wc -l
Hope that's a bit useful. Kind of old techniques, but it still works (most of the time) ;-)
Andreas
|
|---|