1#!/bin/sh
| 1#!/bin/sh
|
2# $FreeBSD: head/tools/regression/usr.bin/pkill/pgrep-LF.t 149474 2005-08-25 20:13:58Z pjd $
| 2# $FreeBSD: head/bin/pkill/tests/pgrep-LF_test.sh 263351 2014-03-19 12:46:04Z jmmv $
|
3 4base=`basename $0` 5 6echo "1..2" 7 8name="pgrep -LF <pidfile>"
| 3 4base=`basename $0` 5 6echo "1..2" 7 8name="pgrep -LF <pidfile>"
|
9pidfile=`mktemp /tmp/$base.XXXXXX` || exit 1 10sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
| 9pidfile=$(pwd)/pidfile.txt 10sleep=$(pwd)/sleep.txt
|
11ln -sf /bin/sleep $sleep 12daemon -p $pidfile $sleep 5 13sleep 0.3 14chpid=`cat $pidfile` 15pid=`pgrep -f -L -F $pidfile $sleep` 16if [ "$pid" = "$chpid" ]; then 17 echo "ok 1 - $name" 18else
--- 23 unchanged lines hidden --- | 11ln -sf /bin/sleep $sleep 12daemon -p $pidfile $sleep 5 13sleep 0.3 14chpid=`cat $pidfile` 15pid=`pgrep -f -L -F $pidfile $sleep` 16if [ "$pid" = "$chpid" ]; then 17 echo "ok 1 - $name" 18else
--- 23 unchanged lines hidden --- |