Hello! This is Mallory Morell from U of Arizona. I am trying to run this script:<br><br>#! /bin/csh -f<br><br>unsetenv CLICOLOR<br>set loc = `pwd`<br>#set stns = `ls -d [A-Z]*/badRF`<br>set stns = `ls -d test*/`<br>foreach stn ( $stns )<br>

   cd $stn<br>   set files = `ls *a*.norm.itr`<br>   foreach ff ( $files )<br>      set fcut = `basename $ff .itr`<br>      echo $fcut<br>      echo $fcut | sac ../sacro_itr<br>      echo -n &quot; move files = 1 &gt;&gt;&gt; &quot;<br>

      set ans = $&lt;<br>      if ( $ans == 1) then<br>         mv $fcut* badRF<br>      endif<br>   end<br>   cd $loc<br>end<br><br>Which then pipes the variable and opens this script which runs in SAC:<br><br>setbb file $1<br>

r %file%.itr %file%.itt<br>bg x<br>qdp off<br>rmean; taper<br>fileid type l kstnm baz<br>xlim -2 20<br>ylim all<br>color on inc list red black<br>grid on<br>p2<br><br>The
issue is, SAC closes before I can even view the p2 screen, and it
shouldn&#39;t. These codes have worked in the past, so we are unsure of
what is going on, but I need the p2 screen to stay on while I answer
the prompt. Or if it could stay on long enough that I could actually
look at it, then manually close it to answer the prompt that would also
be fine. Instead I get this error: <br>
<br>SAC Error: EOF/Quit<br>     SAC executed from a script: quit command missing<br>     Please add a quit to the script to avoid this message<br>     If you think you got this message in error, <br>     please report it to: <a href="mailto:sac-help@iris.washington.edu" target="_blank">sac-help@iris.washington.edu</a><br>

<br>Thanks for any ideas you have!<br><br>Mallory