LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I start graphical applications via cron? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-start-graphical-applications-via-cron-280202/)

p0ser 01-20-2005 02:14 PM

How do I start graphical applications via cron?
 
I'm having problems scheduling azureus to start at a given time using cron. I can start any console-based application, but every graphical applications fails to start. I'm using Gentoo, KDE and vixie-cron.
Can anyone help, please?

Thanks in advance.

sludink 01-21-2005 01:36 PM

instead of using just
azureus
as the command, like you probably did, give the command:
env DISPLAY=:0.0 azureus
I hope this works.

Tinkster 01-21-2005 01:57 PM

Or without env if cron has bash as it's shell ...

And try the full path, just in case.



Cheers,
Tink

p0ser 01-21-2005 02:25 PM

Thanks for the replies, but I've already been advised to use that DISPLAY thingy, and it didn't work. I didn't use "env", though, I'll give it a try and post results later. And yes, I'm using the full path /usr/bin/azureus.

Tinkster 01-21-2005 02:29 PM

Quote:

Originally posted by p0ser
Thanks for the replies, but I've already been advised to use that DISPLAY thingy, and it didn't work. I didn't use "env", though, I'll give it a try and post results later. And yes, I'm using the full path /usr/bin/azureus.
And you were using the crontab of the user who was
already running an X session? :)


Cheers,
Tink

p0ser 01-21-2005 02:31 PM

Quote:

Originally posted by Tinkster
And you were using the crontab of the user who was
already running an X session? :)


Cheers,
Tink

I'm not absolutely sure, but I think so. Have you ever tried it and it actually worked?

Tinkster 01-21-2005 02:40 PM

More than once ... and just to re-assure myself that
env wasn't necessary I did the following about 50
minutes ago ...

Code:

57 8 * * * DISPLAY=localhost:0.0 /usr/X11R6/bin/oclock&
All good, all happy ...


Cheers,
Tink

p0ser 01-21-2005 02:44 PM

Thanks a lot, I'm goona try it as soon as I arrive home :)


All times are GMT -5. The time now is 11:28 AM.