Help: syntax error in shell script

cdohert at ccvax.ucd.ie cdohert at ccvax.ucd.ie
Tue Jun 11 00:54:13 AEST 1991


Hi Unix Wizards,
I am attempting to write my first shell script and I'm perplexed
by the error message I'm getting from the shell parser.
The script is as follows
******************************************************************
for network in 1 2 3 5 10 20 30
do
     `expulse` $network 0
     if test -f pulse.${network}.net
     then `cascor1.3` <<!
         pulse.${network}.net
         1000
         1000
         y
         y
         pulse.${network}.wts
         !
     > pulse.${network}.output
     fi
done

******************************************************************
#`expulse` & `cascor1.3` are programs that take various arguments.

prompt>sh script
 results in the error:
line 22 `end of file' unexpected.

My question is why?
Probably elementary error but any pointers welcome.

Conor Doherty
Dept of Computer Science
University College Dublin



More information about the Comp.unix.questions mailing list