Thread: Re: Need Suggestions

Started: 2012-09-28 23:59:56
Last activity: 2012-09-28 23:59:56
Topics: SAC Help
Juan Payero
2012-09-28 23:59:56
Hello Mohit,
You can use: "pause period off" or "pause period 20"
Juan.

Hello SAC Users,

I am writing a bash shell script in which I am opening SAC to do some
stuff
on my data and then I want to plot the result to look at it for some time
by giving pause command but the script is not holding itself and keep
running. The portion of the script is like this

echo "Please enter the name of Vertical component with extension .BHZ: "
read numerator
echo "Please enter the name of Radial component with extension .BHR: "
read denominator
echo "Please enter the value of gaussian width : "
read width
echo $numerator >> iter_SRF.in
echo $denominator >> iter_SRF.in
echo '2' >> iter_SRF.in
echo '200' >> iter_SRF.in
echo '20' >> iter_SRF.in
echo '0.00001' >> iter_SRF.in
echo $width >> iter_SRF.in
echo '1' >> iter_SRF.in
echo '1' >> iter_SRF.in
iterdeconfd_orig.x < iter_SRF.in
sac << EOF
r decon_S.out
mul -1
w over
p
pause(){read -p "Press [Enter] key to continue..." fackEnterKey}
quit
EOF

I tried to do this with " pause 20s " but same probem occurred. It is not
letting me to look at plot.

Regards

--
*Mohit Agrawal
PhD Candidate | Research Assistant | Geophysics (Computational Seismology)
Dept. of Geology | Baylor University
Geophysics Lab, E453R | Baylor University Sciences Building (BSB) |
Office:
E454R,BSB.
Phone- 254-710-2172 ( lab), 254-710-2155(office), 281-460-8941(Personal)
Email : mohit_agrawal<at>baylor.edu, ism21.mohit<at>gmail.com
Home Address : Apt # 207, 1500 s, 9th street, 76706, Waco, Texas, USA.*
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help



Dr. Juan S. Payero de Jesús.
IGEF-UNAM
Telf. (5255) 5622-4126
(52155)2310-1163 cel
DF, México.

Skype : payerojeju
email alterno: juan_payero_dejesus<at>yahoo.com


09:21:51 v.22510d55