[ncl-talk] run ncl script in "bash" *.sh

Yuqiang Zhang yuqiangzhang.thu at gmail.com
Wed Aug 6 18:56:53 MDT 2014


Hi Erika,

 

For my case, I am using csh “#!/bin/csh”, and “ncl script.ncl” works for me. 

 

Regards,

Yuqiang

 

From: ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu] On Behalf Of Erika Folova
Sent: Wednesday, August 06, 2014 5:41 PM
To: NCL-talk
Subject: [ncl-talk] run ncl script in "bash" *.sh

 

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,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140806/a2407cad/attachment.html 


More information about the ncl-talk mailing list