Meredith,<br>Try making your grads script a function by adding the following lines before and after the regular grads script code:<br><br>function main(args)<br>YY = subwrd(args,1)<br>name = subwrd(args,2)<br><br>...script code....<br>
<br>return<br><br>When you call Grads in your script, call it like you are doing pretty much:<br><br>grads -lbxc "(script name) ${argument1} ${argument2} ..."<br><br>The grads script done this way should include the argument list in the bash script as the input arguments to the Grads function in your script.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 11:30 AM, Meredith Croke <span dir="ltr"><<a href="mailto:mcroke@airdat.com">mcroke@airdat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for everyones input.. Its somewhat working. I say somewhat because it seems like grads is getting hung up, the bash script opens grads but then it just stops, I took it out of batch mode in the hopes of seeing more detail, but no luck. I also tried it with the variables before and after the run command:<br>
<br>
/export/grads/bin/gradsc -lc 'run /lustre-sas1/automate/RTFDDA_track.gs "${yyyy} | ${name}"'<br>
<br>
And in my grads script I have at the very top:<br>
pull data<br>
YY=subwrd(data,1)<br>
name=subwrd(data,2)<br>
say 'heres my name and date: 'name' 'YY<br>
'open /lustre-sata1/data/cycles/grib_output/'YY'/grads/tropfdda0/tropfdda0.ctl'<br>
<br>
I'm not even seeing the say command.<br>
<br>
Thanks again for all your help.<br>
<br>
Meredith<br clear="all"><br></blockquote></div><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>