Skip to main content
5 events
when toggle format what by license comment
Dec 14, 2017 at 11:51 comment added Acus I assume cron is running with user rights. So no additional authorization is required. X server is not need running for particular display. The display just should not be used by different user (in that way it will most probably not connect). Also the X server can be virtual, for example tightvnc, which I usually use.
Dec 14, 2017 at 10:13 comment added Albert Retey what I try to say is that if you use a display setting, there needs a X server be running as the given display number and the process of the cron job needs to be authorized to use that display. Just giving -display :1 as an argument will not make that work if there is no X server running for that display number or the cron job is not authorized to use it. Looks like you have set up your machine accordingly, but it is essential information that the OP would have to do that for your answer to work for him...
Dec 14, 2017 at 8:25 comment added Acus Not sure, but I think it is nothing to do with logging. As far as concerns :1, you are right, on large system it can be used, but you can choose quite large number, say :13. In my computations I always prefered true graphics drivers. In fact webMathematica requires X server installed and frame buffer is in my opinion worse choice (I configured myself webMathematica, mokslasplius.lt/eksperimentai/isbandykite-webmathematica). In fact some time ago I used the solution to generate quite large number of graphics by automatic scripts. Don't see a reason why it should not work from cron.
Dec 13, 2017 at 21:25 comment added Albert Retey I would expect this to fail when you are not logged on to that computer. Either :1 might not exist or you could have no access to it. If the script is supposed to reliably work from a cron job, I think it needs to use a frame buffer as Jason B. suggests. This is also documented in the webmathematica and the workbench documentations, search for Xvfb there.
Dec 13, 2017 at 18:27 history answered Acus CC BY-SA 3.0