我编写了 sch 脚本 (cm2.csh) 并尝试在 Ubintu (安装了 c shell) 中运行,但收到如下错误:
bash: ./cm2.csh: /bin/csh/: bad interpreter: Not a directory
这是我的脚本:
#!/bin/csh -f
set REGION = 75.85/76.5/41.37/41.7
set AXIS = f3ma3mWSne
set SIZE = M26c
set grdfile = Naryn.grd
set psfile = Naryn.ps
set cptfile = color.cpt
makecpt -Cglobe -Z > $cptfile
grdimage $grdfile -R$REGION -J$SIZE -C$cptfile -U -K > $psfile
grdcontour $grdfile -R$REGION -J$SIZE -C50 -A150 -K -O >> $psfile
pscoast -R$REGION -J$SIZE -B$AXIS -Df -W2,150 -O -K >> $psfile
psmeca Hindukush-psmeca.cmt -R$REGION -J$SIZE -Sm0.5c/-2 -Zdepth.cpt -O -K >> $psfile
#grdcontour $grdfile -J$SIZE -C25 -A50+s10 -B1g30m -O -K >> $psfile
pstext -R -JM -O -K <<PROF2>> $psfile
75.98 41.43 18 0 1 LT Naryn
PROF2
psxy -R -JM -St0.5c -G255/0/0 -W1 -P -O <<TRE>> $psfile
75.97 41.426
TRE
我该做什么?