#!/bin/csh

set ACCESSION = $1
set JOBID = $$
set OUTFILE = $JOBID.outfile
set RM = /usr/bin/rm

# Run cfetch, which calls nclever to retrieve the
# GenBank entry from NCBI 
echo $ACCESSION > $JOBID.namefile
cfetch $JOBID.namefile $OUTFILE
$RM $JOBID.namefile

# View the output in a text editor
($ACE_XEditor $OUTFILE; $RM $OUTFILE)&