#!/bin/csh -f

if($1 == "-h") then
 echo " "
 echo "Usage:   "
 echo  "  >> show_magf"
 echo  "     lists available magnetic fields"
 echo " "
 exit 0
endif

set table = $1
rm -f tmp.txt
echo  "use user_geometry;" > tmp.txt
echo  "select name, type, magnitude, swim_method from magnetic_fields;" >> tmp.txt 
mysql -h $GEMC_HOST -u $GEMC_USER < tmp.txt 
rm -f tmp.txt




