RNZ2RNX is a csh script,the content:
#!/bin/csh -f
#
# C-shell script : CRZ2RNX
# (frontend of CRX2RNX)
# 1996.12.19 created by HATANAKA, Y.
# e-mail:
hata@gsi.go.jp
#--------------------------------------------------------------------
if($#argv < 1) then
more << EOF
CRZ2RNX is a C-shell script to recover RINEX files from Compact RINEX files.
Usage : CRZ2RNX CRINEX_files [compressed CRINEX/RINEX]
Wildcard can be used.
Recovered RINEX files are created into current directory.
compressed RINEX/CRINEX --> CRINEX --> RINEX
????????.??m.Z --> ????????.??m
????????.??n.Z --> ????????.??n
????????.??o.Z --> ????????.??o
????????.??d.Z --> ????????.??d --> ????????.??o
????????.??d --> ????????.??o
EOF
exit
endif
#--------------------------------------------------------------------
set PROGRAM = CRX2RNX
unset noclobber
foreach file ($argv[*])
######## uncomment the next line if you want to echo files in process
# echo 'processing ' $file
set file2 = $file:t
if( $file2:e == 'Z') set file2 = $file2:r
set body = $file2:r
set extension = $file2:e
set yy = `echo $extension | cut -c1-2`
if($file =~ *.??m.Z) then
compress $file
else if($file =~ *.??n.Z) then
compress $file
else if($file =~ *.??o.Z) then
compress $file
else if($file =~ *.??d.Z) then
zcat $file | $PROGRAM - > $body.$yy'o'
######## The following is an example of error handling.
######## You may activate or custamize it as you like.
# if($status == 1) then
# rm $body.$yy'o'
# continue
# endif
else if($file =~ *.??d) then
cat $file | $PROGRAM - > $body.$yy'o'
######## see above
# if($status == 1) then
# rm $body.$yy'o'
# continue
# endif
else
endif
end
I put the file in the directory: /home/gamwork/05001/tables
after that,I do this:
[root@zch tables]# chmod +x CRZ2RNX
[root@zch tables]# CRZ2RNX bjfs0010.05d.Z
bash: CRZ2RNX: command not found
why?
I am eager to getting the answer,thanks