<div dir="ltr"><div dir="ltr"><div>I&#39;m working on automating the GrADS run through a script &quot;.sh&quot; and crontab in linux environment, Ubuntu 10.04 LTS, when the script is run manually with the console generates the images, but when it runs automatically with crontab does not generate the images, any help?</div>

<div><br></div><div>This is the script for crontab:</div><div><br></div><div><div>#!/bin/sh</div><div>cd /home/jjfigueroa/WRF_CPM/ARWpost</div><div>grads -l &lt;&lt; EOF</div><div>open autoteste1.ctl</div><div>run <a href="http://gen.gs">gen.gs</a></div>

</div><div><br></div><div>This is the script for GrADS called &quot;<a href="http://gen.gs">gen.gs</a>:</div><div><br></div><div><div>&#39;set mpdset hires&#39;</div><div>&#39;set display color white&#39;</div><div>&#39;set rbcols 0 11 5 13 3 10 7 12 8 2&#39;</div>

<div>&#39;c&#39;</div><div>t = 1</div><div>while (t &lt;= 41)</div><div>&#39;set t &#39;t&#39;&#39;</div><div>&#39;set gxout shaded&#39;</div><div>&#39;d t2-273.15&#39;</div><div>&#39;cbarn&#39;</div><div>&#39;set gxout contour&#39;</div>

<div>&#39;d t2-273.15&#39;</div><div>&#39;q time&#39;</div><div>x1=sublin(result,1)</div><div>t1=subwrd(x1,3)</div><div>te2=subwrd(x1,5)</div><div>&#39;draw title TEMPERATURA PARA &#39;t1&#39; EN CELSIUS&#39;</div><div>&#39;printim /home/jjfigueroa/WRF/SALIDAS/temp&#39;t&#39;.png&#39;</div>

<div>&#39;c&#39;</div><div>t= t+1</div><div>endwhile</div></div><div><br></div><div>Thanks</div></div><br clear="all"><div dir="ltr"><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Juan José Amides Figueroa Urbano</span></div>

<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Servicio Meteorológico Nacional<br>Servicio Nacional de Estudios Territoriales (SNET)<br>Ministerio de Medio Ambiente y Recursos Naturales (MARN)<br>

Tel: (503) 2233-9544<br><br><span style="border-collapse:separate;font-family:arial;font-size:small">jn 3:16</span></span></div></div><br>
</div>