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
30726
Veteran
Veteran
Posts: 1501
Joined: Wed Sep 24, 2003 11:01 pm

  • Quote

Post by 30726 » Sat Apr 10, 2004 10:54 pm

I use cron for rotation of the logs and backing up stuff. vixie-cron if that matters. Can anyone tell me what the difference is between the different cron daemons? I've seen this question before, but I've never actually seen a good answer.
Top
Blue Fox
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Fri Apr 09, 2004 11:51 pm

  • Quote

Post by Blue Fox » Sat Apr 10, 2004 11:20 pm

I'm curious too...
"Never argue with and idiot cuz he bring you down to his level and beat you with experience"
Top
pandaxiongmao
Guru
Guru
User avatar
Posts: 478
Joined: Mon Sep 29, 2003 4:17 pm
Location: USA

  • Quote

Post by pandaxiongmao » Sun Apr 11, 2004 12:03 am

I got vixie-cron installed, but I don't have any idea how to use cron (and the purpose of having cron). Is there any good guide about that cron stuff? I hope that will be useful for me in the future.
CPU: Intel Core 2 Duo
GPU: nVidia GeForce 9800 GT
MB: Asus P5N-E SLI
Top
30726
Veteran
Veteran
Posts: 1501
Joined: Wed Sep 24, 2003 11:01 pm

  • Quote

Post by 30726 » Sun Apr 11, 2004 12:08 am

The purpose of having a cron daemon is so that you can do tasks at specific times. Lets say you want to emerge sync every day, then you'll just add a crontab entry that'll do that.
Top
pandaxiongmao
Guru
Guru
User avatar
Posts: 478
Joined: Mon Sep 29, 2003 4:17 pm
Location: USA

  • Quote

Post by pandaxiongmao » Sun Apr 11, 2004 1:04 am

tln wrote:The purpose of having a cron daemon is so that you can do tasks at specific times. Lets say you want to emerge sync every day, then you'll just add a crontab entry that'll do that.
Thanks for the explanation. Wew, there are lots of stuff that I have to learn.
CPU: Intel Core 2 Duo
GPU: nVidia GeForce 9800 GT
MB: Asus P5N-E SLI
Top
rfujimoto
Apprentice
Apprentice
Posts: 195
Joined: Mon Mar 22, 2004 3:02 am

  • Quote

Post by rfujimoto » Sun Apr 11, 2004 6:56 am

I use cron somewhat. On my server I use cron a lot. I haven't found too many good uses for cron on my desktop aside from teaching Spam Assassin and updatedb'ing

I can't believe how many times people sync their tree. Every 4 hours, wow! 8O Once a day is a lot if you ask me, but I guess I'm in the minority here...
Top
Blue Fox
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Fri Apr 09, 2004 11:51 pm

  • Quote

Post by Blue Fox » Sun Apr 11, 2004 12:00 pm

You can find all you need to know about cron in:
man 5 crontab
"Never argue with and idiot cuz he bring you down to his level and beat you with experience"
Top
Wi1d
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Mon Mar 15, 2004 3:46 pm
Location: USA, Iowa
Contact:
Contact Wi1d
Website

  • Quote

Post by Wi1d » Sun Apr 11, 2004 5:58 pm

Heres mine.

Code: Select all

MAILTO=Me
# Monthly
0 12 5,10,20 * * /usr/sbin/logrotate --verbose /etc/logrotate.conf

# Frequent
4 3 * * * /etc/init.d/portsentry stop
5 3 * * * /usr/sbin/chkrootkit
7 3 * * * /etc/init.d/portsentry start
15 3 * * * /usr/bin/emerge rsync >/dev/null 2>&1
30 3 * * * /usr/bin/emerge -up system
35 3 * * * /usr/sbin/fixpackages >/dev/null 2>&1
45 3 * * * /usr/bin/updatedb 1>/dev/null 2>&1

# Often
#0 * * * * /usr/bin/rdate -s time.nist.gov
Top
hollywoodb
Apprentice
Apprentice
User avatar
Posts: 259
Joined: Wed Nov 05, 2003 10:54 pm
Location: MN, U.S.A.
Contact:
Contact hollywoodb
Website

  • Quote

Post by hollywoodb » Sun Apr 11, 2004 8:26 pm

at 4:00 am:
emerge sync && emerge -fuD world
(fetches all the tarballs for me so I can decide what to emerge later)

at 5:30 am:
slocate -u
Top
Unne
l33t
l33t
User avatar
Posts: 616
Joined: Mon Jul 21, 2003 4:23 pm
Contact:
Contact Unne
Website

  • Quote

Post by Unne » Sun Apr 11, 2004 10:37 pm

I use vixie-cron. I run fetchmail every 5 minutes, and run sa-learn every night at midnight on my local spam inboxes. In addition to makewhatis and updatedb, etc.
Top
nrl
Guru
Guru
User avatar
Posts: 446
Joined: Thu Mar 27, 2003 10:16 am
Location: Glasgow, UK
Contact:
Contact nrl
Website

  • Quote

Post by nrl » Sun Apr 11, 2004 11:18 pm

I use vixie-cron to run fetchmail every 10 minutes and to check my IP every 2 minutes and (if it has changed) update my dyndns thingy.
Top
C1REX
l33t
l33t
User avatar
Posts: 788
Joined: Fri Jan 02, 2004 2:07 am
Location: Poland/UK

  • Quote

Post by C1REX » Mon Apr 12, 2004 2:12 am

I don' t have cron. I don't need it.
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
Top
Senso
Apprentice
Apprentice
User avatar
Posts: 250
Joined: Tue Jun 17, 2003 12:40 am
Location: Montreal, Quebec
Contact:
Contact Senso
Website

  • Quote

Post by Senso » Mon Apr 12, 2004 2:51 am

PowerFactor wrote:eventualy :wink:
Gentoo's default /tmp cleaning boot script(it's in bootmisc) doesn't clean /tmp very agressively. And sometimes I don't reboot for a long time anyway. Especialy my server.
Just pray it doesn't clean out /tmp while compiling something important. :)
Top
codergeek42
Bodhisattva
Bodhisattva
Posts: 5142
Joined: Mon Apr 05, 2004 4:44 am
Location: Anaheim, CA (USA)
Contact:
Contact codergeek42
Website

  • Quote

Post by codergeek42 » Mon Apr 12, 2004 3:21 am

Yup. Vixie-cron user.

Weekly: emerge sync, logrotate
Daily: updatedb

I prolly should set it to make a backup of /home/peter/ and /var/www/html every few days or something, but oh well.
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Top
ColeSlaw
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Fri Sep 19, 2003 8:03 pm
Location: Kearney, NE USA
Contact:
Contact ColeSlaw
Website

  • Quote

Post by ColeSlaw » Mon Apr 12, 2004 3:28 am

I run mythfilldatabase for my mythtv at 6:00 AM every morning!
My Folding@home Stats!
Join the GLUE folding Team!
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Mon Apr 12, 2004 4:03 am

How else should I get a new portage version every day ? :twisted:
Top
PowerFactor
Veteran
Veteran
User avatar
Posts: 1693
Joined: Thu Jan 30, 2003 7:45 pm
Location: out of it

  • Quote

Post by PowerFactor » Mon Apr 12, 2004 7:03 am

Senso wrote:Just pray it doesn't clean out /tmp while compiling something important. :)
:lol: That's why I have it do something a bit more selective than "rm -fr /tmp/*" That would be bad for any X session I had runing at the time too.
Top
hook
Veteran
Veteran
User avatar
Posts: 1397
Joined: Wed Oct 23, 2002 5:24 pm
Location: Ljubljana, Slovenia
Contact:
Contact hook
Website

  • Quote

Post by hook » Mon Apr 12, 2004 7:29 am

i'd love to use cron ...but i have a feeling that i won't be able too for quite some time :(

at the moment, i have a dual-boot PC with my brother - so there's no way to run it that long to make really good use of cron

in a year, i hope to bring together enough money to buy myself a laptop ...which again isn't that suited from cron, since you don't have it on 24/7 -_-

...i'm cursed, what can i say ...maybe when i make that backup-server
tea+free software+law=hook

(deep inside i'm still a tux's little helper)
Top
tihkal
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Sat Feb 28, 2004 4:27 pm

  • Quote

Post by tihkal » Mon Apr 12, 2004 10:08 am

Vixie-cron here.

Syncing portege.
Updating time.
Updating ClamAV's definitions.
Backing up home directories, digital photos and other oddities.
Other personal overnight "house cleaning"...

The usual stuff.
Top
georwell
Guru
Guru
User avatar
Posts: 430
Joined: Wed Jun 25, 2003 3:23 am
Location: Uppsala, Sweden

  • Quote

Post by georwell » Mon Apr 12, 2004 10:33 am

I use cron for many things so I will just post one of them. I have a script that runs every 20 minutes making sure sshd is up and running. If you remote servers, it sure is a pain in the ass if sshd isn't running. :)
Top
dsegel
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Fri Jan 31, 2003 8:41 pm

  • Quote

Post by dsegel » Mon Apr 12, 2004 2:35 pm

adammc wrote:I use vixie-cron too - emerge sync at mid-day, emerge -uDpv world at 12.30 and emerge -uDpv system at 12.35; very useful for keeping an eye on what needs updating without actually doing anything.
'world' encompasses 'system' as well as other stuff you've emerged, so this is redundant.
Top
adammc
Apprentice
Apprentice
Posts: 230
Joined: Tue Oct 07, 2003 4:35 pm
Location: Europe
Contact:
Contact adammc
Website

  • Quote

Post by adammc » Mon Apr 12, 2004 2:44 pm

dsegel wrote:
adammc wrote:I use vixie-cron too - emerge sync at mid-day, emerge -uDpv world at 12.30 and emerge -uDpv system at 12.35; very useful for keeping an eye on what needs updating without actually doing anything.
'world' encompasses 'system' as well as other stuff you've emerged, so this is redundant.
not exactly, since this way I can see which updates are part of system and which aren't - I keep everything in system more up to date than everything else, but still like to keep an eye on world for any specific updates I've been waiting for.
There'd better be fudge when I get home...
Top
mrmodin
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Sat Jan 24, 2004 4:50 am
Location: Stockholm, Sweden

  • Quote

Post by mrmodin » Mon Apr 12, 2004 11:24 pm

naah, I have never figured out how I could make a good use of a cron.
Top
blaksaga
Guru
Guru
User avatar
Posts: 461
Joined: Mon May 19, 2003 9:00 pm
Location: Omaha, NE, USA
Contact:
Contact blaksaga
Website

  • Quote

Post by blaksaga » Tue Apr 13, 2004 6:42 am

vixie-cron empties my trash bins every night. :)
[ blaksaga.com ]
Top
Blue Fox
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Fri Apr 09, 2004 11:51 pm

  • Quote

Post by Blue Fox » Tue Apr 13, 2004 6:47 pm

blaksaga wrote:vixie-cron empties my trash bins every night. :)
Simple but pretty smart 8)
"Never argue with and idiot cuz he bring you down to his level and beat you with experience"
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