problems open GRADS with crontab

Alexandre Santos puffy78 at GMAIL.COM
Mon Mar 26 11:38:05 EDT 2007


sed the command -clb for -lbc. Ok

On 3/23/07, martynas kazlauskas <mkzv at yahoo.com> wrote:
>
> Hello all,
>
> If I may may still add my comment on the crontab
> issue. I've noticed that the cron does not recognize
> grads command unless the pathway to grads is fully
> described in the script. And (no hard feelings) I
> doubt that it is "because sometimes the path to grads
> could not be known in the cron  mode", I would rather
> change it to "everytime".
>
> Regards,
> Martynas Kazlauskas
> LHMS
>
>
>
>
> --- Isilda da Cunha Menezes <isilda at UEVORA.PT> wrote:
>
> > 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
> > >>
> > >
> >
>
>
>
>
>
> ____________________________________________________________________________________
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20070326/999f7f00/attachment.html 


More information about the gradsusr mailing list