Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [SLE] Script to check if an application is running
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Fri, 18 Nov 2005 01:31:13 +0000 (UTC)
  • Message-id: <437D2F87.5050407@xxxxxxxxxx>
Bruce Marshall wrote:
if ! ps -aux | grep $daemon | grep -iv grep
1. why -i? grep is grep, not GrEp
2. you can do daemon=f[e]tchmail instead to avoid irrelevant hits on the grep process
3. Use checkproc for the testing instead of any of the above


< Previous Next >
References