<div dir="ltr"><div><div><div>Hi,<br><br></div>Please also try this:<br><br>#!/bin/bash<br>ncl << eof<br>load "roms_5_ratio.ncl"<br>exit<br>eof<br><br><br></div>Best,<br><br></div>Ekin<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 April 2015 at 08:55, Guiting Song <span dir="ltr"><<a href="mailto:guitingsong@gmail.com" target="_blank">guitingsong@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"><div><div><div><div>Hi, <br><br></div>I also tried <br><br>#!/bin/bash<br>
<span>ncl</span>
/home/arnold/ROMS_AGRIF_Vietnam/Roms_tools/Run/FORECAST/roms_5_ratio.<span>ncl</span>
> <span>ncl</span>.log<br><br></div>But it does not work, any help will be welcomed.<br></div>Thank you,<br><br></div>Tony<br><br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 3:32 PM, Jatin Kala <span dir="ltr"><<a href="mailto:jatin.kala.jk@gmail.com" target="_blank">jatin.kala.jk@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 bgcolor="#FFFFFF" text="#000000">
Hi,<br>
If you've installed ncl correctly, which it seems that you have
since you ran on the command line, this should just work:<br>
#!/bin/bash<br>
ncl
/home/arnold/ROMS_AGRIF_Vietnam/Roms_tools/Run/FORECAST/roms_5_ratio.ncl
> ncl.log<div><div><br>
<br>
<br>
<br>
<br>
<br>
<br>
<div>On 20/04/15 12:29 PM, Guiting Song
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div>
<div dir="ltr">
<div>Hi, All,<br>
<br>
I can run my ncl script-roms_5_ratio.ncl in linux command
line. But can not make it in bash file. My bash file is like
below<br>
<br>
_______________________________________________________________<br>
#!/bin/bash<br>
<br>
export NCL=/home/arnold/software/ncl_ncarg/bin/ncl<br>
$NCL
/home/arnold/ROMS_AGRIF_Vietnam/Roms_tools/Run/FORECAST/roms_5_ratio.ncl
> ncl.log<br>
<br>
_____________________________________________________________<br>
<br>
</div>
<div>however it does not give me the running result, does
anybody have experiences about how to run ncl scripts in bash
file, please share with me and I will be very appreciated.<br>
</div>
<div><br>
Best regards,<br>
</div>
<div>Tony<br>
</div>
<div><br>
<br>
<br>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
</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></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></div>