#!/bin/csh -f

set filename = $1
set workdir = $2
set outfile = $3

set current = $PWD
cd $workdir

hsi get $filename

cd $current

printf "retrieved " $filename > $outfile 

