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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"