#! /bin/sh

if [ $# -ne 2 ];
then
  echo Usage: $0 relation database
  exit 1
fi

awk '{ print $0 "\\g" }' < $1.schema | monitor -q $2

monitor -c "copy $1 from \""`pwd`"/$1.copy\"" $2

