How can I schedule GUI application by cron

Solution Unverified - Updated -

Issue

  • When I edit cron file to execute GUI application periodically, I got following messages from cron.

Case A:

Unable to connect to X Windows display: :0.0

Case B:

cannot open display: 

How can I execute GUI application with cron ?

Environment

  • Red Hat Enterprise Linux
  • crond

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.