#!/bin/sh

echo "Executed with parameter list: $*";

action=$1

echo > $action.log;
while read var rest; do
	echo "[$action]: $var" >> $action.log;
	test "x$var" = "xstop" && break;
done

echo "$0[$action] terminating...";
