#!/bin/tcsh if ("$1" == "") then echo "error: no image id specified" exit 1 endif if ("$jdb" == "") then echo "env var jdb not set. should be something like jackson20060125" exit 1 endif set pixid = "$1" if ( ! -e /san/sanvol1/scratch/visiGene/downloads/jackson/$jdb/$pixid.jpg ) then #echo "pixid=$pixid" echo "$pixid" >> pix-downloaded.list #get the actual picture set URL = "http://www.informatics.jax.org/pix/fetch_pixels.cgi?id=$pixid" echo "pixURL=$URL" wget -q -O /san/sanvol1/scratch/visiGene/downloads/jackson/$jdb/$pixid.jpg "$URL" endif