<div dir="ltr"><div><div>Hi Erika,<br><br></div>All you should have to do is replace 'ncl script.ncl' with 'ncl < script.ncl'. That's the same syntax you'd use to execute an NCL script from your shell.<br>
<br></div>Jared<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 3:40 PM, Erika Folova <span dir="ltr"><<a href="mailto:e.folova@gmail.com" target="_blank">e.folova@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear NCL,<div><br></div><div>Do me a favor, how to run some ncl scripst in a shell script: e.g;</div><div>
<br></div><div>================================</div><div><div>!/bin/bash/</div>
<div><br></div><div>declare -a arr=("fma" "mam" "amj")</div><div><br></div><div>for i in "${arr[@]}"</div><div><br></div><div>do</div><div><br></div><div> echo "$i"</div>
<div> cd ${i}/</div><div> <b>ncl script.ncl</b></div><div> cd ../</div><div><br></div><div>done</div><div>================================</div><div><br></div><div>I got errors by doing this, Thank you</div>
<div>cheers,</div><div><br></div><div>Erika,</div></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><div><div><div><div><font face="courier new, monospace">===============================<br>Jared A. Lee, Ph.D.<br></font></div><font face="courier new, monospace">Project Scientist I<br>
</font></div><font face="courier new, monospace">Research Applications Laboratory<br></font></div><font face="courier new, monospace">National Center for Atmospheric Research<br>Boulder, Colorado, USA<br><br></font></div>
<font face="courier new, monospace">Email: <a href="mailto:jaredlee@ucar.edu" target="_blank">jaredlee@ucar.edu</a> (w)<br></font></div><font face="courier new, monospace">Phone: 303.497.8485 (w)</font><div><font face="courier new, monospace">Web: <a href="https://staff.ucar.edu/users/jaredlee" target="_blank">https://staff.ucar.edu/users/jaredlee</a><br>
===============================</font><br></div></div>
</div>