Isilda,<br><br>Did you try to run your script runexp in the command line ? <br><br>If it works ,&nbsp; you would provide the grads location inside the script, because sometimes<br>the path to grads could not be known in the cron mode.
<br><br>You could try:<br><br>&nbsp;${GRADSDIR}/gradsc  -clb &quot;run gera_figuras-<a href="http://europa.gs">europa.gs</a>&quot; &gt;&amp; grads2.out<br><br>Where GRADSDIR is the location of gradsc program in your computer.<br>
<br>Best Regards<br><br>José Antonio<br><br><br><div><span class="gmail_quote">2007/3/22, Isilda da Cunha Menezes &lt;<a href="mailto:isilda@uevora.pt">isilda@uevora.pt</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br>I am with a problem. I want to run a script of shell that opens grads and<br>runs one gs.script with the instructions&nbsp;&nbsp;to create the figures, using<br>crontab. But I am abtain an error message and he does not create the
<br>figures. When I run shell script in the line of commands of consoles does<br>not have any problem. I find that it is in the parameters of grads that is<br>the problem. They will be able to help me to correct it error in script of
<br>shell? It has an alternative way to open grads without giving error when<br>we use crontab?<br><br>my script shell is:<br><br>#!/bin/bash<br>DIR=$PWD<br>gradsc -clb &quot;run gera_figuras-<a href="http://europa.gs">europa.gs
</a>&quot; &gt;&amp; grads2.out<br>if [ $? -ne 0 ] ; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit 8<br>fi<br><br>and the error message:<br><br>/home/isilda/simul-BRAMS/RAMSPOST50/figuras/runexp: 3: Syntax error: Bad<br>fd number<br><br>Best regards
<br> Isilda<br></blockquote></div><br>