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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content