#!/bin/sh
#
# This scripts removes the .ppm files that are
# created by NPB across the cluster and removes
# the dir they were in.
#

if test $# -eq 1
then
	for x in `cat /<path_to_dir>/vwall | grep -v \#`; do
		echo "Cleaning DIR /scrtch/<username>/$1 on boba $x ..."
		ssh boba$x "cd /scrtch/<username>/$1; rm -f *.ppm; cd ..; rmdir $1; exit"
		sleep 1
	done
fi
