problems open GRADS with crontab

Isilda da Cunha Menezes isilda at UEVORA.PT
Fri Mar 23 07:40:27 EDT 2007


Olá José Antonio!
Thanks for your help, but was necessary also to change the l for the p in
the GRADS parameters. Mine script already runs with crontab, correctly.

Best regards
Isilda






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



More information about the gradsusr mailing list