Thread: Need Suggestions

Started: 2012-09-28 21:57:47
Last activity: 2012-09-28 21:57:47
Topics: SAC Help
Mohit Agrawal
2012-09-28 21:57:47
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.*

  • Januka Attanayake
    2012-09-28 20:27:14
    try sleep 20

    -J.
     
    _______________
    Serenity isn't freedom from the storm, but peace within the storm

    Januka Attanayake 
    Earthquake Seismology & Economics
    The University of Connecticut
    354, Mansfield Road
    Storrs, CT 06269-2045
    Tel:860 486 3914 (Lab - P405)

    Home page: http://sites.google.com/site/janukaattanayake/
    Research group: http://www.phys.uconn.edu/research/geophysics/index.html








    ________________________________
    From: mohit agrawal <ism21.mohit<at>gmail.com>
    To: sac-help<at>iris.washington.edu
    Sent: Friday, September 28, 2012 3:57 PM
    Subject: [SAC-HELP] Need Suggestions


    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
07:17:05 v.01697673