LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2009, 10:18 AM   #1
Mohtek
Member
 
Registered: Dec 2004
Location: Colorado
Distribution: Kubuntu/Debian/Centos
Posts: 126

Rep: Reputation: 15
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.

Last edited by Mohtek; 11-21-2009 at 11:57 AM.
 
Old 11-22-2009, 07:09 PM   #2
++nick++
Member
 
Registered: Dec 2008
Location: Bellevue,WA
Distribution: RHEL 5 , Fedora ,Sabayon,Solaris,Vmware,AWS
Posts: 107

Rep: Reputation: 18
thanks for the explanation , many will find it useful
 
Old 11-22-2009, 07:54 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,398

Rep: Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780
Actually, that would run on 21 of Nov....
 
  


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
how to run a job as a different user from crontab digitallyamar Linux - Server 2 09-13-2009 06:39 AM
[SOLVED] crontab didn't run qwertyjjj Linux - Newbie 28 08-14-2009 07:04 AM
How to run this script in Crontab baig Linux - Newbie 2 11-30-2008 02:34 PM
Cannot get crontab to run uncle-c Linux - Newbie 4 02-12-2008 06:05 AM
Script doesn't run in crontab dani81 Linux - General 1 11-16-2004 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 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