Thread: question about "do file wild *SAC"

Started: 2010-01-27 04:42:26
Last activity: 2010-01-27 04:42:26
Topics: SAC Help
Igor
2010-01-27 04:42:26
Dear SAC users,

Could you please help me to find out what's wrong with my file reading
sequence?

The code snippet from sac_LHZ.test:
...
do file wild *SAC
setbb vert $file
r %vertdo file wild *SAC
setbb station &1,KSTNM
setbb otime &1,O
evaluate to cotime %otime * (-1.0)
ch ALLT %cotime IZTYPE IO
setbb network &1,KNETWK
setbb polezero %polezerod%%station%.%network%.PZ
w %vert
enddo
...

The content of the current dir:
PTRP.TO.SAC LVOF.TO.SAC MMMR.TO.SAC

The errors:
do file wild *SAC
./tr: line 4: 26622 Segmentation fault sac <<!
m sac_LHZ.test
quit
!

The script I run:
cat tr
sac <<!
m sac_LHZ.test
quit
!


If I comment out the lines "do file.." and "enddo" and read a single file
like:
setbb vert PTRP.TO.SAC
the code continues to execute fine.
So the problem is about using wild with *SAC.

Thanks,
Igor

Page built 19:54:09 | v.b'59d0d2