LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-04-2010, 12:54 AM   #1
elnita
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Cron not working / updating Opensuse 11.0


I am new to Linux and have done an install of Moodle 1.9.8 on Linux OpenSuse 11.0

I have created my cron via the terminal (crontab -e) root crontab - see below

*/5 * * * * http/moodle/moodle/admin/cron.php

I have run the followings scripts as well:

# ls -lut /etc/init.d/cron
-rwxróró1 root root 4363 Apr 29 10:29 /etc/init.d/cron

# ps -el | grep cron
1 S 0 5220 1 0 80 0 - -- 3652 - ? 00:00:00 cron

# ls -lut /etc/crontab
-rw-róról root root 326 Apr 29 10:29 /etc/crontab

# chkconfig --list | grep cron
cron 0-off 1-off 2-on 3-on 4-off 5-on 6-off

When going to /var/log/messages my cron entries appear as they should but my backup does not run and every morning when I go to the Notifications tab it tells me my crom maintenance script has not run in 24hours.

I would also like to get this in a log file and emailed to me.

Any assistance is welcome
 
Old 05-05-2010, 06:43 PM   #2
rdgreenlaw
Member
 
Registered: May 2007
Distribution: Ubuntu 14.04 LTS
Posts: 59

Rep: Reputation: 16
have you tried webmin?

Try installing Webmin, then use webmin to configure the crontab table. Compare webmin's output with your hand-created table to see what's different. This might help you to determine the problem. Also, it is possible to restrict cron to only run for specific users. If this is the case on your system you have 2 options. 1. Enable cron for your username 2. put your crontab entries in the root crontab. Either way your crontab entries should work.

Allowing a program like webmin (www.webmin.com) to create a system configuration for you and then tweaking the created table is a great way to learn. Webmin is a very small web server that runs on your system through your web browser (http://localhost:10000) If you are running a system that restricts root access (like Ubuntu) you will need to use a non-privileged user with root access via sudo to login to webmin, otherwise login with root and the root password to add your user name to the user table. Webmin's creator is very helpful to new users answering help requests quickly and correctly.
 
Old 05-05-2010, 08:40 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,266

Rep: Reputation: 99
Have you tried to restart crond daemon.

Code:
service crond restart
 
  


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
Updating opensuse 10.2 tgerbert Suse/Novell 8 03-30-2009 11:21 PM
No sound after much updating opensuse 10.3 Riznordin Linux - Newbie 2 12-28-2007 12:19 AM
cron.daily, cron.weekly not working mwhite74 Linux - Server 2 06-07-2007 09:51 AM
updating Q - from openSuSE 10.0 to 10.2 cbjhawks Suse/Novell 5 01-26-2007 06:16 PM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U Suse/Novell 11 01-04-2007 01:57 AM


All times are GMT -5. The time now is 06:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration