From owner-freebsd-questions@FreeBSD.ORG Fri Aug 24 00:59:30 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D83D106566B for ; Fri, 24 Aug 2012 00:59:30 +0000 (UTC) (envelope-from frank@undermydesk.org) Received: from amazone.undermydesk.org (amazone.undermydesk.org [213.211.198.100]) by mx1.freebsd.org (Postfix) with ESMTP id E2E098FC18 for ; Fri, 24 Aug 2012 00:59:29 +0000 (UTC) Received: from amazone.undermydesk.org (localhost [127.0.0.1]) by amazone.undermydesk.org (Postfix) with ESMTP id 09543286E6F; Fri, 24 Aug 2012 02:59:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at undermydesk.org Received: from amazone.undermydesk.org ([213.211.198.100]) by amazone.undermydesk.org (amazone.undermydesk.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H-zjRuFq0QqK; Fri, 24 Aug 2012 02:59:27 +0200 (CEST) Received: from [192.168.0.74] (p57AE7096.dip.t-dialin.net [87.174.112.150]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by amazone.undermydesk.org (Postfix) with ESMTPSA id BB042286E5B; Fri, 24 Aug 2012 02:59:27 +0200 (CEST) Message-ID: <5036D1EB.8000904@undermydesk.org> Date: Fri, 24 Aug 2012 02:59:23 +0200 From: Frank Reppin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Jack Stone References: <5036B542.1040509@sage-american.com> <5036B897.1050101@undermydesk.org> <5036C751.20704@sage-american.com> In-Reply-To: <5036C751.20704@sage-american.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: small script help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2012 00:59:30 -0000 There's an errorneous extra ^ in line 6 - please remove this character. Fixed version should look like: #!/bin/sh PROCESS_PATTERN="^/usr/local/sbin/saslauthd" PGREP="/bin/pgrep" if ${PGREP} -q -j none -f ${PROCESS_PATTERN}; then echo -e "OK" else echo -e "FAIL" fi frank\ -- 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped