Date: Fri, 24 Aug 2012 02:59:23 +0200 From: Frank Reppin <frank@undermydesk.org> To: Jack Stone <jacks@sage-american.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: small script help Message-ID: <5036D1EB.8000904@undermydesk.org> In-Reply-To: <5036C751.20704@sage-american.com> References: <5036B542.1040509@sage-american.com> <5036B897.1050101@undermydesk.org> <5036C751.20704@sage-american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5036D1EB.8000904>