From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Alencar Alves de Lima Subject: Script to check a process Date: Sat, 8 Jul 2006 01:09:48 -0300 Message-ID: <200607080109.48851.diegolima.br@gmail.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-newbie-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-newbie@vger.kernel.org Hello, I have a system that I monitor remotely but I have a problem: I need to have 3 processes running on it all the time (actually, it's the same process running 3 times) and I can't be watching the system 24/7. How can I make a script that will check to see if a certain process is running? The process name is "nspluginviewer" and there should be 3 of it running (each one called from a konqueror process). Then it would reboot the computer if it didn't detect the three running. Thanks - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs