Re: HighRes maps, cron job

From: Yann Bertrand <yann74_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 31 2012 - 17:25:10 MDT

Hello, the missing "/" is only in the email. I tried to check my environment by comparing "printenv" command in my bash shell and this line in my crontab : "15 12 * * * printenv > ~/cronenv.txt" ==> cat ~/cronenv.txt the result is almost identical (except tuning shell options) I use differents programs :grads, wgrib2, etc... they work with cron job (I'm not an OS expert.) My first line after the shebang is: source ${HOME}/.bashrc perhaps the problem could come from my gcc version, quite old version: "gcc (GCC) 4.2.4" I installed the "gcc432" NCL 6.1.0 Now, i use NCL 5.1.1 for cron jobs... If I find solution, I'll reply. ________________________________ De : Mary Haley <haley_at_ucar.edu> À : Yann Bertrand <yann74_at_yahoo.fr> Cc : NCL Talk <ncl-talk_at_ucar.edu>; Gerry Creager <gerry.creager_at_noaa.gov> Envoyé le : Mardi 30 octobre 2012 16h37 Objet : Re: [ncl-talk] HighRes maps, cron job Yann, You have a possible typo: >> export NCARG_RANGS=forecast/util/ncl6.1.0/lib/ncarg/database/rangs/ You are missing a "/" in front of "forecast". If the typo was just in this email, and you have it correct on your machine, then when Gerry is suggesting is correct. You need to make sure your enviroment variables are seen by your script. You have actually put the RANGS files in the default location that NCL looks for them based on your setting for NCARG_ROOT, so this leads me believe that your NCARG_ROOT is not being seen by your cron job. You can try debugging this by adding this line to your script:   print("path for rangs is '" + ncargpath("rangs") + "'") This will help you determine if the right path is being used. --Mary On Oct 30, 2012, at 8:30 AM, Gerry Creager wrote: > Just a thought, but are you also telling your script about all paths > and other environment variables? In your cron job, you might also > source your .bash_profile to make sure everything is being picked up. > > gerry > > On Tue, Oct 30, 2012 at 2:35 AM, Yann Bertrand <yann74_at_yahoo.fr> wrote: >> Hello, >> i'm ploting maps with both NCL 5.1 and ncl 6.1.0 >> all my scripts are ok when I run them manually, but they don't work in >> "HighRes" (empty maps) >> if I run them from cron with NCL 6.1.0 or 6.1.O beta. All is ok "with >> MedRes" & cron. >> my script are "sourced": >> >> #!/bin/bash >> export NCARG=/forecast/util/ncl6.1.0/ >> export NCARG_ROOT=/forecast/util/ncl6.1.0/ >> export PATH=/forecast/util/ncl6.1.0/bin/:$PATH >> >> And also: >> >> export NCARG_RANGS=forecast/util/ncl6.1.0/lib/ncarg/database/rangs/ >> >> for HigRes coastlines with RANGS database. >> >> What is the problem? >> Thanks in advance. >> >> Yann. >> >> _______________________________________________ >> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Oct 31 17:25:23 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 06 2012 - 15:05:49 MST