#!/bin/sh # Script to test the attribute cache behavior of the local OS client. # If this script fails, it means that Amd cannot turn off the attrcache # reliably on this host, and Amd therefore may not run reliably. See # the README.attrcache file distributed with this am-utils. # -Erez Zadok, September 29, 2005 # set PATH (must install am-utils first) prefix=@prefix@ exec_prefix=@exec_prefix@ PATH=@sbindir@:@bindir@:/usr/ucb:/usr/bin:/bin:${PATH} export PATH # test if amd is running amq -p > /dev/null 2>&1 if test $? = 0 then echo "### Amd already running... please shutdown Amd first" exit 1 fi mapfile="/tmp/amd.testmap.$$" logfile="/var/log/amd" delay=1 a=/a CreateMap1 () { echo "### Creating correct map" cat - >$mapfile <$mapfile <