<div dir="ltr"><div dir="ltr"><div>I'm working on automating the GrADS run through a script ".sh" 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 << 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 "<a href="http://gen.gs">gen.gs</a>:</div><div><br></div><div><div>'set mpdset hires'</div><div>'set display color white'</div><div>'set rbcols 0 11 5 13 3 10 7 12 8 2'</div>
<div>'c'</div><div>t = 1</div><div>while (t <= 41)</div><div>'set t 't''</div><div>'set gxout shaded'</div><div>'d t2-273.15'</div><div>'cbarn'</div><div>'set gxout contour'</div>
<div>'d t2-273.15'</div><div>'q time'</div><div>x1=sublin(result,1)</div><div>t1=subwrd(x1,3)</div><div>te2=subwrd(x1,5)</div><div>'draw title TEMPERATURA PARA 't1' EN CELSIUS'</div><div>'printim /home/jjfigueroa/WRF/SALIDAS/temp't'.png'</div>
<div>'c'</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>