1
1
I have a script which runs a Java GUI application using "java -jar app.jar". I have added the script to the crontab to run every minute, check the processlist if the application is up. If it isn't it should start the application.
However, it only starts the process, but not the GUI. I have added "export DISPLAY=:0" to the top of the script, but that didn't help.
How do I make cron run the program as if I am starting it myself?
Thanks
1I have found that example, but couldn't figure out what the gui_appname is for an application run via "java -jar app.jar". – nanoman – 2012-04-23T12:41:06.257