LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   crontab won't run under user in Kubuntu 9.10 (https://www.linuxquestions.org/questions/linux-newbie-8/crontab-wont-run-under-user-in-kubuntu-9-10-a-770634/)

Mohtek 11-21-2009 10:18 AM

crontab won't run under user in Kubuntu 9.10
 
I know the answer is simple, I have excluded all of the possible variables and I am trying this as an experiment.

I am running Kubuntu 9.10 on two computers and have simplistic crontabs, but they simple don't run. (Googled first, followed several guides on Ubuntu forums and looked for previous threads here)

I crontab -e "username" and the crontab file is as follows:

# m h dom mon dow command
11 09 21 11 * /usr/bin/amarok


It should simply launch amarok at 9:11 A.M. on November 11.
I added the local user to the /etc/security/access.conf file for local access that was in one of the "gotyas' I read about.


NVM, I did solve it.

"It is possible to run gui applications via cronjobs. This can be done by telling cron which display to use"

00 06 * * * env DISPLAY=:0 amarok -p (which loads Amarok and plays the last playlist loaded.

++nick++ 11-22-2009 07:09 PM

thanks for the explanation , many will find it useful

chrism01 11-22-2009 07:54 PM

Actually, that would run on 21 of Nov....


All times are GMT -5. The time now is 11:54 PM.