LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2005, 02:14 PM   #1
p0ser
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Rep: Reputation: 0
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.
 
Old 01-21-2005, 01:36 PM   #2
sludink
Member
 
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
instead of using just
azureus
as the command, like you probably did, give the command:
env DISPLAY=:0.0 azureus
I hope this works.
 
Old 01-21-2005, 01:57 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Or without env if cron has bash as it's shell ...

And try the full path, just in case.



Cheers,
Tink
 
Old 01-21-2005, 02:25 PM   #4
p0ser
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 01-21-2005, 02:29 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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
 
Old 01-21-2005, 02:31 PM   #6
p0ser
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 01-21-2005, 02:40 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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
 
Old 01-21-2005, 02:44 PM   #8
p0ser
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks a lot, I'm goona try it as soon as I arrive home
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
start applications on boot ryedunn Linux - Newbie 4 08-10-2005 10:06 PM
fc2-gnome : Applications dont start / very slow to start nox104 Linux - Software 0 08-18-2004 08:53 PM
Graphical Cron Job botzy Linux - Software 4 08-14-2004 07:24 PM
Graphical interface to Cron? Phaethar Linux - Software 3 03-25-2004 08:57 AM
using X-Win32 for graphical applications nargis Linux - Networking 1 10-02-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration