LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-09-2004, 06:28 PM   #1
ralvy
Member
 
Registered: Nov 2004
Posts: 36

Rep: Reputation: 15
cron.daily question


I have, by default, an slocate script in cron.daily, however I see no evidence that that script ever runs. Is there something I need to do to make Slack run that script daily, other than have it in that directory and make sure it's executable?
 
Old 12-09-2004, 06:42 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
check the time stamp for /var/lib/slocate/slocate.db. it should be updated daily.
and /var/log/cron should reflect an entry for cron jobs that were ran. you should see something like this for cron.dailyl:

Dec 9 04:02:00 mnlssa CROND[17880]: (root) CMD (run-parts /etc/cron.daily)
 
Old 12-09-2004, 07:05 PM   #3
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
The timestamp of slocate.db as stated above. On Slackware cron does not log anything. You could email the result of every cronjob by adding your emailadres to the entry in crontab.
 
Old 12-09-2004, 09:07 PM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
Slackware doesn't include anacron (like some other distributions do), so if you power down your machine for the night, make sure that your cronjobs are set to run when the machine is actually switched on.
 
Old 12-09-2004, 10:25 PM   #5
ralvy
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by alienDog
Slackware doesn't include anacron (like some other distributions do), so if you power down your machine for the night, make sure that your cronjobs are set to run when the machine is actually switched on.
Well, I did some reading on crontab (man crontab) and found the -l switch. As root

Code:
crontab -l
showed a nicely laid out schedule for hourly, daily, weekly, and monthly tasks. As user, no such schedule showed up. After googling on 'crontab howto', I found this page:

Code:
http://www.defcon1.org/html/Software_Articles/Learning-CHMOD/Kernel-Problems/Bootup/crontab.html
which explains the various entries I saw when I did 'crontab -l' as root. An easier explanation than that found when doing a 'man crontab'. After using 'crontab -e' as user, I was able to create the proper cron file for my own account.

I also noted earlier, after looking for various cron files with

Code:
slocate *cron*
that KDE has a kcron I could have used, but after loading that app I quickly noticed that I would never learn a thing about crontab that way, so ditched it early.

Thanks.

Last edited by ralvy; 12-09-2004 at 10:36 PM.
 
Old 12-09-2004, 10:37 PM   #6
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
note as well that the crontabs are stored in /var/spool/cron/crontabs
 
Old 12-09-2004, 11:55 PM   #7
ralvy
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Genesee
note as well that the crontabs are stored in /var/spool/cron/crontabs
Yes. I found that out when loading the file via 'crontab -e'.
 
  


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
Cron Job Daily petenyce Linux - Newbie 17 01-04-2006 12:13 PM
crontab vs cron.daily ? SheldonPlankton Linux - Newbie 1 07-16-2004 01:10 PM
cron.daily error gjmwalsh Mandriva 2 10-29-2003 03:12 PM
cron.daily MrJoshua Linux - General 2 03-19-2003 01:09 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM


All times are GMT -5. The time now is 02:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration