Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-08-2010, 05:04 PM
|
#1
|
Member
Registered: Dec 2007
Location: SE Texaas
Distribution: Ubuntu, Mint, Fedora
Posts: 168
Rep:
|
Crontab Script Not Running
Quote:
*/2 * * * * /home/willis/changer
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .----- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
|
I opened "crontab -e" in the Terminal and in nano I copied and pasted the first line of this copied script, leaving all the notated lines out. Each time I manually run changer by clicking and selecting "Run" it changes my Wallpaper but this does not happen automatically no matter how many times I reboot.
Does anyone know what "Stupid" did to mess up a perfectly good plan?
Any help will be greatly appreciated.
Last edited by th1bill; 12-10-2010 at 03:47 PM.
|
|
|
12-08-2010, 05:26 PM
|
#2
|
Member
Registered: Nov 2010
Distribution: Debian Lenny
Posts: 136
Rep:
|
I think you're supposed to have:
Code:
[when to run] user command
|
|
|
12-09-2010, 01:45 AM
|
#3
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
First, cron has a limited PATH, so make sure to give the whole path to all commands and files.
Take a look in the logfiles for errors.
Cron will sent a mail to the user, if there are problems.
Perhaps you can post the script.
Or try wallpapoz for gnome:
http://wallpapoz.akbarhome.com/
Kind regards
|
|
|
12-09-2010, 03:51 AM
|
#4
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
cron does not know about your desktop's X server.
If you know cron is running the script (echo running > /tmp/${0##*/}.$$ would tell), and you have only one X server running, you could try adding export DISPLAY='localhost:0.0' to your script.
Alternatively you could add a delayed loop to your script and launch it from the desktop's autostart facility instead of using cron -- its a neater solution than all those cron jobs anyway.
|
|
|
12-10-2010, 03:49 PM
|
#5
|
Member
Registered: Dec 2007
Location: SE Texaas
Distribution: Ubuntu, Mint, Fedora
Posts: 168
Original Poster
Rep:
|
I have marked the string Solved because I found Wally and I can start it from the GUI Menue.
|
|
|
All times are GMT -5. The time now is 04:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|