[ncl-talk] run ncl script in "bash" *.sh
Jared Lee
jaredlee at ucar.edu
Wed Aug 6 16:16:37 MDT 2014
Hi Erika,
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.
Jared
On Wed, Aug 6, 2014 at 3:40 PM, Erika Folova <e.folova at gmail.com> wrote:
> Dear NCL,
>
> Do me a favor, how to run some ncl scripst in a shell script: e.g;
>
> ================================
> !/bin/bash/
>
> declare -a arr=("fma" "mam" "amj")
>
> for i in "${arr[@]}"
>
> do
>
> echo "$i"
> cd ${i}/
> *ncl script.ncl*
> cd ../
>
> done
> ================================
>
> I got errors by doing this, Thank you
> cheers,
>
> Erika,
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
===============================
Jared A. Lee, Ph.D.
Project Scientist I
Research Applications Laboratory
National Center for Atmospheric Research
Boulder, Colorado, USA
Email: jaredlee at ucar.edu (w)
Phone: 303.497.8485 (w)
Web: https://staff.ucar.edu/users/jaredlee
===============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140806/c82733ba/attachment.html
More information about the ncl-talk
mailing list