small script help

Frank Reppin frank at undermydesk.org
Fri Aug 24 00:59:30 UTC 2012


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


More information about the freebsd-questions mailing list