Re: run NCL script using corntab, how?

From: Don Morton <Don.Morton_at_nyahnyahspammersnyahnyah>
Date: Sun Sep 09 2012 - 08:16:52 MDT

My suggestion is to simply hard-code any important environment variables in
the script that gets launched by cron. If you do that, you don't have to
waste time trying to figure out which shell is invoked, which rc files are
read, etc.

On Sun, Sep 9, 2012 at 5:18 AM, ugo merlini <ugomerlini@hotmail.com> wrote:

> Hi,
>
> even if I have Ncl directories in /etc/profile (which should give global
> environment) I missed to add it also in the bash script
>
> Regards
>
> Ugo
>
>
>
>
> I'm usin debian squeeze
>
> > Date: Sun, 9 Sep 2012 06:54:47 -0500
> > Subject: Re: run NCL script using corntab, how?
> > From: akrherz@iastate.edu
> > To: ugomerlini@hotmail.com
> > CC: ncl-talk@ucar.edu
> >
> > Hi Ugo,
> >
> > Could you provide a bit more information and the exact error you get?
> > I suspect the issue is that your environment that properly sets up
> > your shell for executing NCL is not being sourced when running your
> > cron script. Could you provide the exact command you are using in
> > your crontab? One suggestion would be to run the command 'env'
> > immediately in your cron script to see what environment variables are
> > set. Another suggestion would be to set your shell explicitly in the
> > crontab, but simply setting
> >
> > SHELL=/bin/whatever
> >
> > daryl
> >
> > On Sat, Sep 8, 2012 at 5:16 PM, ugo merlini <ugomerlini@hotmail.com>
> wrote:
> > > Hi,
> > >
> > > I'm trying to run an NCL script using crontab and I'm not able to do
> it. If
> > > I manually lunch the script it works
> > >
> > > Ugo
> > >
> > > _______________________________________________
> > > ncl-talk mailing list
> > > List instructions, subscriber options, unsubscribe:
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > >
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
Voice:  +1 907 450 8679
Arctic Region Supercomputing Center
http://weather.arsc.edu/
http://people.arsc.edu/~morton/ <http://www.arsc.edu/%7Emorton/>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Sep 9 08:17:03 2012

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2012 - 15:30:42 MDT