Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [SLE] Script to check if an application is running
  • From: Bruce Marshall <bmarsh@xxxxxxxxxx>
  • Date: Fri, 18 Nov 2005 01:39:27 +0000 (UTC)
  • Message-id: <200511172039.09167.bmarsh@xxxxxxxxxx>
On Thursday 17 November 2005 08:33 pm, Anders Johansson wrote:
> 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


Picky picky picky.... <g>

(But we all learn from others)

I stole the script from someone else.... :-)

< Previous Next >