RE: [SLUG] x window tk script to run from cron

From: Ken Elliott (kelliott4@tampabay.rr.com)
Date: Sun Feb 27 2005 - 14:30:39 EST


>>So does this mean that it is not possible to start a gui app from cron?

What about using sendmail to mail yourself an event notification? Would
that do the trick?

Ken Elliott

=====================
-----Original Message-----
From: slug@nks.net [mailto:slug@nks.net] On Behalf Of Larry Brown
Sent: Sunday, February 27, 2005 2:16 PM
To: SLUG
Subject: Re: [SLUG] x window tk script to run from cron

On Sun, 2005-02-27 at 14:01, Paul M Foster wrote:

>
> Cron doesn't run in an X environment. So if it's trying to launch an
> X-based application (which is what it sounds like), it's going to fail
> on that part. Most X apps launched from an xterm can detect that
> they're running in an X environment and launch properly. But cron
> doesn't run that way. I'm guessing that if you try to run any X app
> from a pure console (not an xterm, but a real console), you'll get the
> same or similar error message.
>
> Paul
>

So does this mean that it is not possible to start a gui app from cron?

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages posted
are those of the author and do not necessarily reflect the official policy
or position of NKS or any of its employees.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:41:06 EDT