[gradsusr] Open Error on Map Data Set Error During Cronjob

Perry, Aaron Aaron.Perry at lsc.vsc.edu
Sun Jan 31 18:33:47 EST 2016


Hi Jennifer,


That worked perfectly! I simply added those lines at the top of my bash script and now all is well!


Thank you again,


Aaron D. Perry
Class of 2016
Lyndon State College
Lyndonville, VT 05851
Mobile: (617) 780-4312
Twitter: @arnpry<https://twitter.com/arnpry>
FB: fb.com/arnpry<https://www.facebook.com/arnpry>
LinkedIn: arnpry<https://www.linkedin.com/in/arnpry><https://www.linkedin.com/in/upstream>
Web: shearanalytics.net<http://shearanalytics.net/>
Email: Aaron.Perry at lyndonstate.edu<http://Aaron.Perry@lyndonstate.edu/>


________________________________
From: gradsusr-bounces at gradsusr.org <gradsusr-bounces at gradsusr.org> on behalf of Jennifer M Adams <jadams21 at gmu.edu>
Sent: Sunday, January 31, 2016 5:35 PM
To: GrADS Users Forum
Subject: Re: [gradsusr] Open Error on Map Data Set Error During Cronjob

Aaron,
I believe the problem is that cron does not read your .bashrc before running jobs. You need to set those environment variables in your scripts, or else set up a symlink for /usr/local/lib/grads that points to /home/hoth/grads.
-Jennifer

On Jan 31, 2016, at 3:06 PM, Perry, Aaron <Aaron.Perry at lsc.vsc.edu<mailto:Aaron.Perry at lsc.vsc.edu>> wrote:


Hi Everyone,


I'm currently running into a problem with running some grads scripts in a bash script that is on my cron. I'm running on a CentOS 7 system.


The error:

Open Error on Map Data Set: /usr/local/lib/grads/hires


I added the following lines to my .bashrc:

export PATH=/bin:/usr/bin:$PATH
export GADDIR=/home/hoth/grads
export GASCRP=/home/hoth/scripts

I'm a bit perplexed because I have all of the required font.dats and the 3 map sets in /home/hoth/grads/ but when the scripts run via cron, GrADS can't see them.

What's going on?



Aaron D. Perry
Class of 2016
Lyndon State College
Lyndonville, VT 05851
Mobile: (617) 780-4312
Twitter: @arnpry<https://twitter.com/arnpry>
FB: fb.com/arnpry<https://www.facebook.com/arnpry>
LinkedIn: arnpry<https://www.linkedin.com/in/arnpry><https://www.linkedin.com/in/upstream>
Web: shearanalytics.net<http://shearanalytics.net/>
Email: Aaron.Perry at lyndonstate.edu<http://Aaron.Perry@lyndonstate.edu/>
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160131/2402e283/attachment-0001.html 


More information about the gradsusr mailing list