17 Nov
2005
17 Nov
'05
07:39
Hi All, I want to write a bash script which can be executed by cron every minute to check if an application is running. If it is not running the script should start it again. What I normally would do to check if it is running is execute: # ps aux | grep App root 7479 15.4 0.7 21300 7816 pts/1 Sl 06:34 0:00 /usr/local/bin/App root 7495 0.0 0.0 2880 700 pts/1 R+ 06:34 0:00 grep App Is there a way of doing this? If it is, would it be reliable to use a bash script and cron for checking if the application is running? TIA Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.3/172 - Release Date: 2005/11/15