/var/lib/pcp/testsuite/unbound/test.sh is in pcp-testsuite 4.0.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/sh
count=000
state=/tmp/unbound-qa.txt
[ -f $state ] && count=`cat $state`
count=`expr $count + 1`
# produce some mocked output
count=`printf "%03d" $count`
[ -f unbound/unbound-control-stats-$count ] || count=001
cat unbound/unbound-control-stats-$count
# remember where we reached for next fetch
echo $count > $state
|