LinuxQuestions.org
Register a domain and help support LQ
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 08-15-2011, 04:47 PM   #1
scam
Member
 
Registered: Jun 2011
Location: UK
Distribution: Slackware 13.1, Slackware 13.37
Posts: 92

Rep: Reputation: Disabled
Cron


Hi, I was wondering if cron is worth while using if my pc isn't running 24/7 or times I can't guarantee when a cron job will run. I was thinking of slackpkg update/upgrade or syncing time ect...or would it be better creating a bash script to do this? Just wondered if anyone in my position uses crond.
 
Old 08-15-2011, 05:50 PM   #2
koenigdavidmj
Member
 
Registered: Oct 2009
Posts: 73

Rep: Reputation: 25
Generally it is considered a bad idea to let package upgrades happen as they may break your system without notice. If you upgrade the system manually and the package breaks, then you are at least there to clean it up right away.

Also, the `anacron' tool is built for the use case that you are describing. SlackBuild is here.
 
Old 08-15-2011, 07:53 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Generally my primary office computer is powered on when my cron jobs are scheduled to run during the day. Long ago I tried anacron and now no longer remember what I disliked. To resolve the problem of missed cron jobs, way back then I wrote my own shell script that runs when I boot the computer. Basically, if I boot in the evening for the first boot of the day the script runs the cron jobs that should have run that day. If I skip any day and boot normally the next morning, then the script exits and my system runs all cron jobs as normally scheduled that day.

Missing a cron job is not the end of the world for me and my shell script suffices.

For synchronizing time I run the ntp daemon only on my primary office machine. All other systems in the house use the primary office machine as a time source.

I never run any package updating in automated mode. Twice I have been burned by updating too soon and the released package contained unintentional bugs that required me to reinstall the previous version. Granted, that rarely happens, but generally package updates are not something that is needed right now or the world stops spinning. Unless many people around the web are screaming about a new-found vulnerability, I am content to wait a few days or so to update packages for security reasons. Usually I perform security patch updates on the weekend. I subscribe to the Slackware security list and am notified when a package has been updated for security reasons.
 
  


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
Strange Cron directories: /var/spool/cron/cron.GfqqGO Woodsman Slackware 4 05-11-2011 03:37 PM
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 09:57 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 09:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U Suse/Novell 11 01-04-2007 02:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 02:50 PM


All times are GMT -5. The time now is 12:25 PM.

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