CEMPD / VERDI

This is the repo for the VERDI project, written in java.
GNU General Public License v3.0
17 stars 13 forks source link

error running verdi batch script in crontab #145

Open lizadams opened 7 years ago

lizadams commented 7 years ago

This issue was reported by Greg Quina at the 15th Annual CMAS conference and in a follow-up e-mail to Liz dated Nov. 1, 2016. Error running a batch script from a crontab

I am not sure what would happen if we leave this option in the verdi.command and verdi.sh script - does it stop the gui from working?

lizadams commented 7 years ago

E-mail from Greg: "No X11 DISPLAY variable was set, but this program performed an operation which requires it." My response: I was using some other commands that were suggested similar to what is used here that may help. I didn't realize they were still being used when I found the java.awt.HeadlessException error.

You will likely need to check to see if the Xvfb is already running and if not, start it. I think if you try to start two of them, then you will get an error.

http://www.harrisgeospatial.com/Learn/CaseStudiesResults/TabId/333/ArtMID/1387/ArticleID/2382/2382.aspx

the following line is an example that would start Xvfb in true colour mode on linux: /usr/X11R6/bin/Xvfb :1 -screen 0 1280x1024x24 -ac -terminate & now set the display to point to this X frame buffer setenv DISPLAY :1.0 #Set X-windows display

Note: I need to look at why the -batch command isn't able to run without the X11 display.