Here's another one... Why is it that I always get the error message "Error: Can't open display:" in my mail whenever I execute or try to call an xterm command using cron to activate the command. What did I miss? Thanks in advance UNIX gurus...
This indicates that cron does not have permission to access your X display. Maybe if you set the DISPLAY variable explicitly from cron? I'm not sure why you would need to run an X term from cron anyway...X apps are inherently interactive, they are not really designed to be run non-interactively from cron.
Originally posted by PxT This indicates that cron does not have permission to access your X display. Maybe if you set the DISPLAY variable explicitly from cron? I'm not sure why you would need to run an X term from cron anyway...X apps are inherently interactive, they are not really designed to be run non-interactively from cron.
Would you suggest that we customize an X-application for this purpose? Are there other options? Thanks for your reply.
I think PxT is correct in saying that the DISPLAY variable is not set. You can set the $DISPLAY in cron, or in your srcipt / application.
If you just want some quick, simple notification, you could pop up an xterm on, say, $DISPLAY=":0", with a few lines of code:
I'm sure there's a better way of doing that, but thats the first one that popped into my head... Heck, that as-is probably won't work, but it given you an idea of what I'm thinking, right?
Either way - the xterm will close when someone presses the enter key...
Just noticed that our successful computer trivia feature (stats here) has surpassed over 50,000 questions answered by users:
This was a coding effort worth while and I'm pleased to see so many people enjoying it in such a short time since it was released... (3 Replies)
Only a few days after I coded this new feature from scratch, we are seeing over 3000 entries in the database from members (mostly guests) playing CS trivia.
I have spend a lot of time coding this (from scratch) and testing the API. From the logs, it seems to have an API bug which appears... (31 Replies)
Thanks to Akshay, who helped me write the core MySQL queries, we now have two new draft leaderboards, by (1) member and by (2) country:
Currently milhan leads the members with a high score of 90%:
... (3 Replies)
The UNIX and Linux Forums now has over 1000 TRUE / FALSE computer science and computer related trivia question in our database. These questions are of relatively high quality (compared to similar sites on the web) and are fun (according to feedback by users). In the first week during the... (1 Reply)
I have added a new experimental "Computer Science and Mathematics Trivia - True or False" section in the discussions, currently under the tags box.
In the future, I plan to
Expand this feature to add more trivia categories from math, science and technology.
Keep track of correct and... (20 Replies)