LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   running X programs with cron (https://www.linuxquestions.org/questions/linux-general-1/running-x-programs-with-cron-39061/)

NGraphiX 12-21-2002 02:14 PM

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

rootboy 12-22-2002 05:12 AM

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

NGraphiX 12-26-2002 01:47 AM

thanks,
just a small note. you may need to add a newline thus:
DISPLAY=:0
HOME=...

xmms -p

rootboy 12-26-2002 05:36 AM

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

NGraphiX 12-26-2002 12:00 PM

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!

rootboy 12-27-2002 01:21 AM

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


All times are GMT -5. The time now is 09:01 PM.