Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

Do you use cron?

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
102 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Do you use cron?

Yes
387
76%
No
109
21%
What is cron?
15
3%
 
Total votes: 511
Your vote has been cast.

Author
Message
Lovechild
Advocate
Advocate
User avatar
Posts: 2858
Joined: Fri May 17, 2002 12:00 pm
Location: Århus, Denmark

  • Quote

Post by Lovechild » Wed Dec 15, 2004 3:51 pm

I change my vote to yes.

I have cron jobs to update my hosts files, run prelink and other such nice things - cron is your friend.
Don't listen to sparc developers....
Top
Stolz
Moderator
Moderator
User avatar
Posts: 3028
Joined: Sun Oct 19, 2003 4:26 am
Location: Hong Kong

  • Quote

Post by Stolz » Fri Feb 04, 2005 10:09 pm

sys-apps/vixie-cron here.

I love it :)
Top
ba747heavy
Apprentice
Apprentice
Posts: 216
Joined: Mon Aug 11, 2003 12:17 am
Location: New Mexico, USA

  • Quote

Post by ba747heavy » Fri Feb 04, 2005 10:41 pm

I use vixie-cron mostly to run my dailystrip comic grab at 6 am, so when I wake up I hit my nice pretty icon and I get to read my funnies. I love automation. I REALLY like automation when my windows addict mom says "can you make my windows do that? I want comics too". I just smile :D

Also, prelink, sync time, sync portage, empty trash, etc etc.
Fred Clausen
"leet [speak] is a cry for help from a shallow mind" - Doomwookie Jan 05
Top
electrofreak
l33t
l33t
User avatar
Posts: 713
Joined: Wed Jun 30, 2004 2:11 am
Location: Ohio, USA
Contact:
Contact electrofreak
Website

  • Quote

Post by electrofreak » Sun Feb 06, 2005 4:37 pm

vixie-cron

It's very flexible.
Top
Sardien
n00b
n00b
Posts: 42
Joined: Thu Nov 04, 2004 4:23 pm
Location: South Africa
Contact:
Contact Sardien
Website

  • Quote

Post by Sardien » Sun Feb 06, 2005 9:21 pm

i'm a cron newbie :) trying out vixie-cron
Top
darkfolk
n00b
n00b
Posts: 32
Joined: Sun Jan 30, 2005 3:09 pm

  • Quote

Post by darkfolk » Sun Feb 06, 2005 9:28 pm

Everything I run basically runs overnight, using vixie-cron.

*:30: Mail is checked. # I haven't got a suitable mail client yet, but this is my plan anyway.
*:* 7th of * month: Clear Trash Can. # going to make a script to do this
1:00AM: If computer is still running, run emerge -f world.
4:00AM: Prelink binaries.
5:00AM: updatedb
Top
tv
n00b
n00b
Posts: 15
Joined: Fri Oct 08, 2004 3:33 pm
Location: Stuttgart / Europe

  • Quote

Post by tv » Mon Feb 07, 2005 10:32 pm

Code: Select all

create ~ # crontab -l
### create:/etc/crontab
#
#     minute (0-59)
#    / hour (0-23)
#   / / day (1-31)
#  / / / month (1-12)
# / / / / weekday (0-6,0=sun)
#/ / / / / command

# sync clock
5 12 * * *      nice rdate -s ntp{0,3}.fau.de           &>~/.log/cron.rdate

# sync portage update esearch db and fetch sources while lunch
12 12 * * *     nice esync && nice emerge -fuD world    &>~/.log/cron.portage

# update manpages/slocate database
0 4 * * *       nice makewhatis && nice updatedb        &>~/.log/cron.databases

Code: Select all

tv@create ~ $ crontab -l
### create:~tv/.crontab

# fetch tv listings every monday morning
0 2 * * 1       tv_grab_de_tvtoday|tv_sort      >~/.tvtime/listings.xml

# fetchmail all 10 minutes
*/10 * * * *    fetchmail -am /usr/bin/procmail &>~/.log/fetchmail

# update orca states every hour
5 * * * *     /usr/local/bin/orca -o /home/http/orca/procallator.cfg  &>~/.log/orca

# update etc html files every hour
0 * * * *       ~/lib/indirect/cron.etc2html    &>~/.log/etc2html

# vim: ft=crontab
dcron here
Top
dontremember
Apprentice
Apprentice
User avatar
Posts: 151
Joined: Sat Sep 21, 2002 7:13 pm
Location: Oklahoma

  • Quote

Post by dontremember » Mon Feb 07, 2005 10:40 pm

vixie-cron - mostly for a script that runs regularly (once-daily) to sync portage, then download the sources for any updates. That runs about mid-evening, then I take the laptop to work and have a bunch of other machines sync to it. There's two othe machines at home that sync to that laptop as well, just after the sync, making about 10 that get a sync feed off that one mid-evening sync.
Top
titan100
n00b
n00b
User avatar
Posts: 61
Joined: Mon Sep 06, 2004 10:59 pm
Contact:
Contact titan100
Website

  • Quote

Post by titan100 » Tue Feb 08, 2005 5:02 pm

vixie-cron, use it mainly to run an php script that checks sick teachers at my school and sends an sms with their names to me and some of my buddies ;)
http://www.thoron.org
Top
reiman
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 108
Joined: Sat May 29, 2004 12:26 pm
Location: sweden

  • Quote

Post by reiman » Wed Feb 09, 2005 4:27 pm

I use cron to update my system.. nothing fancy
Top
Vaporz
n00b
n00b
User avatar
Posts: 45
Joined: Fri Sep 10, 2004 6:18 pm

  • Quote

Post by Vaporz » Sat Feb 12, 2005 4:00 pm

is there a easier way i can backup all my ~ files, under a certain size? i've got games there too, 12GB, so i can't really tar the whole thing

Code: Select all

# /etc/crontab
#
# $Header: /var/cvsroot/gentoo-x86/sys-apps/fcron/files/crontab,v 1.7 2004/07/18 04:34:03 dragonheart Exp $

# fcron || dcron:
# This is NOT the system crontab! fcron and dcron do not support a system crontab.
# to get /etc/cron.{hourly|daily|weekly|montly} working with fcron or dcron do
# crontab /etc/crontab
# as root.
# NOTE: This will REPLACE root's current crontab!!
# 20 Apr 2002; Thilo Bangert <bangert@gentoo.org>

# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly

0  *  * * *      rm -f /var/spool/cron/lastrun/cron.hourly
1  3  * * *      rm -f /var/spool/cron/lastrun/cron.daily
15 4  * * 6      rm -f /var/spool/cron/lastrun/cron.weekly
30 5  1 * *      rm -f /var/spool/cron/lastrun/cron.monthly
*/10  *  * * *      /usr/bin/test -x /usr/sbin/run-crons && /usr/sbin/run-crons

# update
0 */12 * * * chkrootkit -q
0 2 * * * nice makewhatis
15 2 * * * nice updatedb
30 2 * * * slocate -u
0 3 * * * emerge sync
30 4 * * * update		# alias for emerge world --newuse -uD

# cleanup
25 3 * * * ccache -C
30 3 * * * rm -R /var/tmp

# backup /etc, /var, /boot, /root, and configs in /home/gagt
* 4 * * * tar czf /shared/backups/important/etc /etc && tar czf /shared/backups/important/var /var && tar czf /shared/backups/important/boot /boot && tar czf /shared/backups/important/root /root && cp /home/gagt/.xinitrc /shared/backups/important/ && cp /home/gagt/.bashrc /shared/backups/important/ && cp /home/gagt/.bash_history /shared/backups/important/ && cp -R /home/gagt/.icewm /shared/backups/important/
Top
Ateo
Advocate
Advocate
Posts: 2022
Joined: Mon Jun 02, 2003 11:47 pm
Location: Vegas Baby!

  • Quote

Post by Ateo » Sun Feb 13, 2005 12:09 am

This is what fcron does for my servers

Code: Select all

10 * * * *      rm -f /var/spool/cron/lastrun/cron.hourly
10 3 * * *      rm -f /var/spool/cron/lastrun/cron.daily
40 3 * * 6      rm -f /var/spool/cron/lastrun/cron.weekly
10 4 1 * *      rm -f /var/spool/cron/lastrun/cron.monthly
*/15 * * * *    test -x /usr/sbin/run-crons && /usr/sbin/run-crons

5 3 * * 0       /root/utilities/cleanDist -d
5 3 * * *       /root/utilities/emergeSync
5 5 * * 6       /root/utilities/sysGetup
5 5 * * 1,3,5   /root/utilities/userGetup

Code: Select all

# ls -l /etc/cron.*
cron.daily:
total 8
-rwxr-xr-x  1 root root 588 Feb 11 16:54 chkrootkit
-rwxr-xr-x  1 root root 221 Feb 11 16:54 logrotate

cron.hourly:
total 0

cron.monthly:
total 0

cron.weekly:
total 8
-rwxr-xr-x  1 root root 394 Feb 11 16:55 cleanSpam
-rwxr-xr-x  1 root root 499 Feb 12 16:02 dbupdate
Top
dob
Apprentice
Apprentice
User avatar
Posts: 199
Joined: Fri Oct 04, 2002 2:41 am
Location: S.L.P.

  • Quote

Post by dob » Mon Feb 14, 2005 12:02 am

fcron 8)

Code: Select all

44 6 * * mon-fri  beep -f 2000 -r 3
It can be used as an alarm clock that doesn't wake you up on saturday mornings
Top
totencham
Apprentice
Apprentice
User avatar
Posts: 299
Joined: Sun Dec 05, 2004 10:00 am
Location: Szczecin, Poland

  • Quote

Post by totencham » Mon Mar 21, 2005 4:59 pm

I am a desktop user and I don't use any cron stuff - I don't even have any idea what for? For me it's just another memory-wasting daemon.
http://gentoo-wiki.com/HOWTO_Index
cd /usr/src/linux && egrep -ir "( fuck)|( shit)" *
Linux registered user #376896
Top
zieloo
Veteran
Veteran
User avatar
Posts: 1337
Joined: Sun Mar 28, 2004 6:51 pm

  • Quote

Post by zieloo » Mon Mar 21, 2005 10:34 pm

You're damned right - whatever you're called:P. But note 'cron-stuff' may be extremaly usefull under certain circumstances.
Top
trbecker
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 136
Joined: Fri Sep 19, 2003 1:09 am
Location: Novo Hamburgo, RS, Brazil

  • Quote

Post by trbecker » Mon Mar 21, 2005 10:59 pm

I use dcron:

AT Home:
weekdays
12:00 - emerge --sync
12:30 - emerge -uDpv world
13:00 - makewahtis and updatedb
14:00 - chrootkit
*/30 minutes - check email

weekends
*/30 - check mail
3:00 - emerge --sync

AT work:

Code: Select all

0       0       *       *       *       ntpdate l000
5       0       *       *       *       nice -n -19 emerge-webrsync > /dev/null 2>&1
20      0       *       *       *       nice -n -19 emerge -upv world > ~/docs/last_updates 2>&1
#22     0       *       *       *       nice -n -19 emerge -u world > /dev/null 2>&1
#0      3       *       *       *       nice -n -19 /usr/bin/run_queued_emerges

0       4       *       *       *       /usr/sbin/tmpwatch 72 /tmp
0       4       *       *       *       /usr/sbin/tmpwatch 72 /var/tmp

0       4       *       *       *       mv ~/docs/chkrootkit ~/docs/chkrootkit.last
15      4       *       *       *       /usr/sbin/chkrootkit > ~/docs/chkrootkit
30      4       *       *       *       /usr/bin/diff ~/docs/chkrootkit.last ~/docs/chkrootkit > ~/docs/chkrootkit.diff.${DATE}
0       5       *       *       *       rm ~/docs/chkrootkit.last

0       3       *       *       *       nice -n -19 updatedb > /dev/null 2>&1

If you see any violations to the Guidelines, please report it.
Top
Omega21
l33t
l33t
User avatar
Posts: 788
Joined: Sat Feb 14, 2004 11:37 pm
Location: Canada (brrr. Its cold up here)
Contact:
Contact Omega21
Website

  • Quote

Post by Omega21 » Tue Mar 22, 2005 3:08 am

I know vixie cron is started at boot, but I dont know how to configure it... :P
iMac G4 1GHz :: q6600 //2x 500GB//2GB RAM//8600GT//Gentoo :: MacBook Pro//2.53GHz
Top
dylix
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Fri Sep 20, 2002 3:11 am
Location: Atlanta
Contact:
Contact dylix
Website

  • Quote

Post by dylix » Tue Mar 22, 2005 3:44 am

dcron ownz j00

https://dylix.org/
Top
Suicidal
l33t
l33t
User avatar
Posts: 959
Joined: Wed Jul 30, 2003 4:55 am
Location: /dev/null

  • Quote

Post by Suicidal » Thu Apr 21, 2005 3:38 am

Hells Yeah, vixie-cron here as well.

Logwatch
mrtg << best to add all crons to one script or you end up with alot of parallel mrtg processes if you have alot of devices like I do ~150
One special one that stops snort parses my snort logs and rm's the alert file then moves the web output to /snort/snort$(date +%Y%m%d) and restarts snort
Portage sync on my rsync server
nessus scans
update-nessus-plugins
backup web dirs and rsync them to another server

cron is your friend.
Top
edudlive
Guru
Guru
User avatar
Posts: 557
Joined: Tue Jan 06, 2004 5:46 am

  • Quote

Post by edudlive » Thu Apr 21, 2005 4:28 am

I use vixie-cron, all I have it do is 'emerge sync' at 4am.

I should probably add rm -rf /usr/portage/distfiles/* to it too
Top
ZmiyGorinich
Guru
Guru
User avatar
Posts: 369
Joined: Fri Feb 27, 2004 10:50 am
Location: Zaporizhzhe, Ukraine
Contact:
Contact ZmiyGorinich
Website

  • Quote

Post by ZmiyGorinich » Thu Apr 21, 2005 10:59 am

Only vixie-cron :)
Home: Athlon XP 2000+, ATI Radeon 9200 64Mb, 512Mb, hda:40Gb, hdb:120Gb, DVD-RW
Work : Duron 1.4, S3 ProSavage8 32Mb, 512Mb, hda:40Gb, CD-RW
Design, programming, hosting
Top
Fizzer
n00b
n00b
User avatar
Posts: 29
Joined: Sat Mar 26, 2005 5:41 pm

  • Quote

Post by Fizzer » Thu Apr 21, 2005 11:38 am

vixie-cron...

Don't ask why or how, it was in the handbook..

Yes I am one of those that voted
What is cron?
BUT I am not Alone :wink:
Top
RBH
Apprentice
Apprentice
Posts: 184
Joined: Sun Oct 31, 2004 12:49 am

  • Quote

Post by RBH » Fri Apr 22, 2005 5:45 pm

Once a day for:

* updatedb
* mysql backup
* emerge --sync

Once a week for:
* ntp syncing

Vixie-cron, purely because that's what the guide suggested when I first installed Gentoo, and I haven't ever needed to change it.
Top
Sourcecode
Guru
Guru
User avatar
Posts: 392
Joined: Mon Apr 25, 2005 10:38 am
Location: Germany, Kerpen in sew of Cologne
Contact:
Contact Sourcecode
Website

  • Quote

Post by Sourcecode » Tue Oct 11, 2005 9:49 pm

I´m using Vixie Cron :)

These are my Cronjobs :

Code: Select all

#########Lets Create the Master Console and backup the last Masterconsole for 1 day#########

59 23 * * * mv /var/log/masterconsole /var/log/masterconsole.old
0 0 * * * touch /var/log/masterconsole

#########misc#########

0 12 * * * /usr/sbin/logrotate /etc/logrotate.conf
0 12 * * * /usr/bin/webalizer

#########Lets update the system and some programs#########
20 * * * * nice -n 19 /bin/yasuc
0 8 * * * /usr/sbin/makewhatis -u -v
30 8 * * * nice -n -5 /usr/sbin/fixpackages
0 9 * * * nice -n -5 /usr/bin/fc-cache -fv
0 10 * * * nice -n -5 /usr/sbin/prelink -afmR
0 11 * * *  /usr/bin/slocate -u
15 11 * * * nice -n -5 /usr/sbin/eix-sync
1 12 * * * /usr/local/sbin/nessus-update-plugins
10 12 * * * /usr/bin/bdc --update
11 12 * * * /usr/bin/rkhunter --update

#########Lets Check for Viruses and Rootkits#########
15 12 * * * /usr/bin/bdc --all / >> /var/log/masterconsole
0 13 * * * /usr/bin/rkhunter -c --cronjob --dislpay-logfile >> /var/log/masterconsole

#########Now iam back from Work, gimme some Infos #########
15 * * * * nice -n 19 netstat -a >> /var/log/masterconsole
2 * * * * nice -n 19 w >> /var/log/masterconsole
0 18 * * * /usr/sbin/logwatch.pl
30 18 * * * nice -n 10 /usr/bin/emerge -unDpv world >> /var/log/masterconsole
0 19 * * * nice -n 19 /usr/bin/ccache -s >> /var/log/masterconsole
5 19 * * * nice -n 10/usr/bin/glsa-check -l | grep '\[N\]' >> /var/log/masterconsole
Es gibt bloss eins, was wichtig ist: dass man sterben muss.

Suicide is man's way of telling God, "You can't fire me - I quit."

no one gets out here alive....
Top
Goalie_Ca
Apprentice
Apprentice
Posts: 156
Joined: Mon Jan 13, 2003 3:54 am
Location: Vancouver,B.C
Contact:
Contact Goalie_Ca
Website

  • Quote

Post by Goalie_Ca » Wed Oct 12, 2005 2:21 am

vixie-cron here.
Mostly to do things like clear, sync, and remind me of things.
Jabber: goalieca[AT]jabber.fr
Beautiful Vancouver, B.C.
http://www.sfu.ca/~rdickie/images/sig_small.jpg
Top
Post Reply
  • Print view

102 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic