#!/bin/csh -fx
#$MDOCS/census/tar2seedis/tar2seedis.csh 11/30/96
#for user merrill - requires entry in ~merrill/.netrc
#file ~merrill/.netrc must be locked: chmod 700 ~merrill/.netrc
# !!! to run: cd $MDOCS/census/tar2seedis
# !!!         more *.txt
# !!!         tar2seedis.csh tapeno >& tapeno.log &
#-------------------------------------------------------------
cd $MDOCS/census/tar2seedis
#-------------------------------------------------------------
# assume only one entry in tarinfo.txt has 1 in first column
# make temp1.$1.ftp and temp2.$1.ftp and temp.$1.csh
tar2seedis.pl $1
# check first ftp file
cat temp1.$1.ftp
# check second ftp file
cat temp2.$1.ftp
# check csh file
cat temp.$1.csh

# transfer main files 
temp.$1.csh >& ftp_$1.log
# remove input files
rm temp.$1.csh temp1.$1.ftp
# check ftp log file
cat ftp_$1.log

# transfer log file
ftp -v seedis.census.gov <temp2.$1.ftp
# remove input file
rm temp2.$1.ftp
#-----------------------------------------------------------