LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-21-2002, 02:14 PM   #1
NGraphiX
Member
 
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154

Rep: Reputation: 30
running X programs with cron


any idea how i get a X program to run with cron?
when trying to put in the crontab, It shows up on the log, but
nothing else.
Thanks in Advance,
NGraphiX
 
Old 12-22-2002, 05:12 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Try this:

http://www.linux.net.nz/lists/NZLUG/2000/10/0036.html

Basically, it's this (from the link):

try `DISPLAY=:0.0 /usr/X11R6/bin/realplay &`


John
 
Old 12-26-2002, 01:47 AM   #3
NGraphiX
Member
 
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154

Original Poster
Rep: Reputation: 30
thanks,
just a small note. you may need to add a newline thus:
DISPLAY=:0
HOME=...

xmms -p
 
Old 12-26-2002, 05:36 AM   #4
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Quote:
Originally posted by NGraphiX
thanks,
just a small note. you may need to add a newline thus:
DISPLAY=:0
HOME=...

xmms -p
Okay, good to know

So what X program are you running through cron, and why?


John
 
Old 12-26-2002, 12:00 PM   #5
NGraphiX
Member
 
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154

Original Poster
Rep: Reputation: 30
dumb idea really..
trying to get myself out of bed for physics class
basicaly
1. lock the screen
2. run the crontab xmms -p at 7:20
3. assume that I'll be awake after I have to enter my password
to turn off the loud music.
cheers!
 
Old 12-27-2002, 01:21 AM   #6
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Quote:
Originally posted by NGraphiX
dumb idea really..
trying to get myself out of bed for physics class
basicaly
1. lock the screen
2. run the crontab xmms -p at 7:20
3. assume that I'll be awake after I have to enter my password
to turn off the loud music.
cheers!
Ha! I love it! That's too cool

So what movie was it that the kid had to get out of bed each morning before his robot/whatever attacked him? Damm near got his girlfriend (not that a true geek would have one of those...)

As for me, I just got done modding my Xbox (x-ecuter lite chip). What a pain in the ass. And I mod stuff for a living (Controls Engineer).


John
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron won't load my programs.... haora Linux - Newbie 2 08-03-2005 01:25 PM
cron job not running vincebs Linux - Software 34 10-30-2004 01:27 PM
Cron stopped running? willemdebeer Linux - Newbie 1 01-02-2004 01:33 PM
Cron job not running? james_cwy Linux - Newbie 6 12-14-2003 08:24 PM
Cron not running Half_Elf Linux - Software 4 01-10-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:55 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration