#!/bin/sh
# This script dumps a blackboard area (1st arg) into a disk file (2nd arg),
#	ie save  u_cpt  /u/ife/data/project_1
# An IFe client can run it by asking the Blackboard:
#	new_client	save	save	area filename
echo $1 "area on the IFe Blackboard, as at" `date`>"/tmp/"$2  # output a header line
echo "dump	$1"				# ask BB for contents of area
while(true)
do
	read line
	echo "$line" >>"/tmp/"$2
	[ X"$line" = X ]  &&  exit	# output a tailer line
done
