Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do you use cron?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

Do you use cron?
Yes
75%
 75%  [ 387 ]
No
21%
 21%  [ 109 ]
What is cron?
2%
 2%  [ 15 ]
Total Votes : 511

Author Message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Tue Apr 13, 2004 11:12 pm    Post subject: Reply with quote

vixie-cron, because it uses syslog properly. (Though I haven't looked at fcron with this attitude.)
Monthly: makewhatis
Weekly: updatedb, emerge sync && eupdatedb
Daily: makewhatis -u, prelink -q
Every 15 minutes: getmail. This conveniently keeps POP-before-SMTP hassles to a minimum.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
crypt0shite
n00b
n00b


Joined: 21 Nov 2003
Posts: 21
Location: slc, utah

PostPosted: Wed Apr 14, 2004 9:13 pm    Post subject: Reply with quote

vixie-cron

MRTG
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Thu Apr 15, 2004 10:54 pm    Post subject: Reply with quote

everyone here who has posted that they use cron to update their time should check out ntp. go find yourself 6 or so stratum 2 time servers (there are lists posted on the web), put them in ntp.conf, then rc-update add ntpd default && /etc/init.d/ntpd start and you will never ever have to worry about your clock again. ntpd constantly and smoothly corrects the clock, keeping it to millisecond-level accuracy always, rather than violently jumping the clock every few hours like rdate does. there are several threads about using ntp on here.

also, for cleaning /tmp and /var/tmp there are two utilities designed for this: tmpwatch (from redhat) and tmpreaper (from debian). both will basically delete all files and directories which haven't been accessed in a week. they come with cron scripts which can be run in the daily cron job.

I use vixie-cron to run my backups (rsync snapshots every 4 hours), to run gentoo-stats, to fetch a new xplanet cloudmap each day, and also to send me emails about relative's and friend's birthdays.
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
screwloose
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2004
Posts: 94
Location: Toon Town, Canada

PostPosted: Fri Apr 16, 2004 10:07 pm    Post subject: Reply with quote

vixie-cron simply because I have been using it since I first started using Linux.

I figured out how to use vixie-cron to do DISHES!!

1. Set a cron script on the firewall to deny my roomate's MAC address after 7:00pm.
2. Roommate asks me why he can't connect to the internet.
3. I tell him to talk to me when he has done his dishes.
4. Roommate proceeds to do his dishes.
4. 7:45pm script automatically allows him to connect again (he doesn't know its automatic)

automation at it's best!!

Next I need to replace steps 2 & 3 with an automatic MSN message to him..... before I cut his connection in step 1.

Can you tell that I have gotten sick of dishes never getting done?
_________________
If something can go wrong it probably already has. You just don't know it yet. ~Henry's Modified version of Murphy's Law
Back to top
View user's profile Send private message
adammc
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 230
Location: Europe

PostPosted: Fri Apr 16, 2004 10:30 pm    Post subject: Reply with quote

screwloose wrote:
Can you tell that I have gotten sick of dishes never getting done?


amazing, truely amazing...I'm going to have to remember that one :wink:
_________________
There'd better be fudge when I get home...
Back to top
View user's profile Send private message
hvwees
n00b
n00b


Joined: 05 Jan 2004
Posts: 26
Location: The Netherlands

PostPosted: Fri Apr 30, 2004 1:18 am    Post subject: Reply with quote

I'm using vixie-cron.
Because I used to that one from my former distro.
_________________
With kind regards,

Huib
Back to top
View user's profile Send private message
WaterSoul
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 158

PostPosted: Fri Apr 30, 2004 1:24 am    Post subject: Reply with quote

Vixie Cron, because they recommanded it

updatedb, makewhatis, and new from today: eupdatedb (for esearch, really useful!!)
Back to top
View user's profile Send private message
VolcomPimp
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 135
Location: Newark, CA

PostPosted: Fri Apr 30, 2004 3:03 am    Post subject: Reply with quote

I dont use it... Vixie is installed but I havn't found
any uses...
What's updatedb exactly for?

I was thinkin of a good use, and if I knew a porn gallery
or somethin that added pix everyday, it'd be pretty cool
to have cron d/l all the pix once daily... heh
other than that I don't really have any use.
I don't mind emerge sync'ing myself.
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Fri Apr 30, 2004 3:37 pm    Post subject: Reply with quote

VolcomPimp wrote:
What's updatedb exactly for?

It pokes around in your filesystem and puts what it finds in a database, so when you're looking for some file you can use 'locate somefile' to find it quickly.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
ChojinDSL
l33t
l33t


Joined: 07 Jul 2003
Posts: 784

PostPosted: Sun May 02, 2004 8:00 pm    Post subject: Reply with quote

I use vixie-cron. The gentoo handbook seemed to recommend it.

Anyway here are some things my cron does.

Extract TV guide information from NxTVepg and store it in xml format and use that to update my mythTV TVguide.

Collect Daily Comic strips off the web using dailystrips.

Update clamav virus database and f-prot virus database.

emerge sync every 24 hours.

synchronize my pc clock with a time server on the internet every couple of hours.
Back to top
View user's profile Send private message
lonegd
Apprentice
Apprentice


Joined: 07 Dec 2003
Posts: 185
Location: UK

PostPosted: Sun May 02, 2004 8:22 pm    Post subject: Reply with quote

I use dcron ( cos I wouldn't touch software associated with Paul Vixie ) to do weekly emerge sync, check certain webpages for changes, update my dynamic dns, and grab my mail.
_________________
Mark Cooper
http://pvrhw.goldfish.org/ - Open Source PVR Hardware Database
Back to top
View user's profile Send private message
etnoy
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 255
Location: Västerås, Sweden

PostPosted: Sun May 02, 2004 9:38 pm    Post subject: Reply with quote

screwloose wrote:
vixie-cron simply because I have been using it since I first started using Linux.

I figured out how to use vixie-cron to do DISHES!!

1. Set a cron script on the firewall to deny my roomate's MAC address after 7:00pm.
2. Roommate asks me why he can't connect to the internet.
3. I tell him to talk to me when he has done his dishes.
4. Roommate proceeds to do his dishes.
4. 7:45pm script automatically allows him to connect again (he doesn't know its automatic)

automation at it's best!!

Next I need to replace steps 2 & 3 with an automatic MSN message to him..... before I cut his connection in step 1.

Can you tell that I have gotten sick of dishes never getting done?


That was awesome!
_________________
The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c

God is dead! - Nietzsche
Nietzsche is dead! -God
Back to top
View user's profile Send private message
PaNtHaLooN
n00b
n00b


Joined: 03 May 2004
Posts: 1

PostPosted: Mon May 03, 2004 2:26 am    Post subject: Reply with quote

I'm using vixie-cron - but I'm not quite happy.
neither dcron or fcron will do either...
I just can't go without system tweaks in an excessive way ;-)
So I might even turn vixie down and go on to mcron.
Back to top
View user's profile Send private message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Tue May 04, 2004 4:37 am    Post subject: Reply with quote

i never did understand the time system of cron anyone care to enlighten me on it
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Thu Dec 09, 2004 9:50 am    Post subject: Reply with quote

I use vixe-cron as well

I have a script for snort that every night it stops snort,
runs snortalog against /var/log/snort/alert
moves the output to /var/www/localhost/htdocs/snort/snort-$(date --iso8601)
moves all of the snort logs to /root/snort-archive/snort-$(date --iso8601)
then it restarts snort

otherwise snortalog takes hours to parse the logs.

Also I have mrtg installed and I have a different crontab entry for each device

an entry for my rsync server to sync every 4 hrs starting 1 am localtime (services over 75 boxen)
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Thu Dec 09, 2004 11:52 am    Post subject: Reply with quote

Of course I do. Some tasks like setting date/time, chkrootkit, updatedb, logrotate, makewhatis etc. are handled by vixie-cron.
Back to top
View user's profile Send private message
shagrat
Apprentice
Apprentice


Joined: 10 Mar 2003
Posts: 219
Location: Norway

PostPosted: Thu Dec 09, 2004 2:30 pm    Post subject: Reply with quote

I use vixie-cron, but only for my eggdrops
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Dec 09, 2004 2:42 pm    Post subject: Reply with quote

Yes, vixie with SMART and logwatch to send myself emails of disk status ;-)

mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Thu Dec 09, 2004 2:51 pm    Post subject: Reply with quote

No such need - don't use anyth. with *cron in its name;)
Back to top
View user's profile Send private message
WhyteWolf
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 168
Location: Las Vegas

PostPosted: Thu Dec 09, 2004 3:21 pm    Post subject: Reply with quote

Code:
crontab -l
08:20:57 listing root's fcrontab
# /etc/crontab
#
# $Header: /var/cvsroot/gentoo-x86/sys-apps/fcron/files/crontab,v 1.7 2004/07/18 04:34:03 dragonheart Exp $


#       minute (0-59),
#       |       hour (0-23),
#       |       |       day of the month (1-31),
#       |       |       |       month of the year (1-12),
#       |       |       |       |       day of the week (0-6 with 0=Sunday).
#       |       |       |       |       |       commands
# ------{ daily cron jobs }------------ #
        15      4       *       *       1       prelink -afmR
        0       2       *       *       *       esync | grep [[] | grep []]
        12      14      *       *       *       chkrootkit > ~/docs/chkroot && diff ~/docs/{chkroot,chkroot.compare}
#       0       0       *       *       *       cat ~/docs/space && echo && df -h | tee ~/docs/space >> /var/log/superconsole
#       40      12      *       *       *       emerge -uDpv world >> /var/log/superconsole
        30      3       *       *       *       emerge -uDvf world > /dev/null && echo 'fetched new files for building'
#       0       16      *       *       *       glsa-check -l | grep '\[N\]' >> /var/log/superconsole
        1       14      *       *       *       rkhunter -c --cronjob > ~/docs/rkhunter && diff ~/docs/{rkhunter,rkhunter.compare}
        2       15      *       *       *       cat ~/docs/ports && nmap griffon | tee ~/docs/ports
        0       1       *       *       *       updatedb
        0       4       *       *       1       fc-cache -fv
        0       4       *       *       2       aide -u
#       */3     *       *       *       *       tail /var/log/messages >> /var/log/superconsole
#       */2     *       *       *       *       netstat -tp >> /var/log/superconsole
#       */4     *       *       *       *       w >> /var/log/superconsole
        0       0       *       *       *       /usr/sbin/logrotate /etc/logrotate.conf

_________________
Thomas Phipps
Linux User #180408 LFS User #1791
Back to top
View user's profile Send private message
sparks
Guru
Guru


Joined: 05 Mar 2003
Posts: 331
Location: Nashville, TN

PostPosted: Sat Dec 11, 2004 3:46 am    Post subject: Reply with quote

I use cron daily to run a script that backs up my /home directory every night then pruns my backup directory for any backups older than 4 days. It is very useful IMHO.
_________________
True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war.
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Sat Dec 11, 2004 10:31 pm    Post subject: Reply with quote

Oktane wrote:
Of course I do. Some tasks like setting date/time,...


Wouldnt ntp or openntpd be better for that? I know ntp is a pain but openntpd is pretty much no effort.
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Sat Dec 11, 2004 10:34 pm    Post subject: Reply with quote

Suicidal wrote:
Oktane wrote:
Of course I do. Some tasks like setting date/time,...


Wouldnt ntp or openntpd be better for that? I know ntp is a pain but openntpd is pretty much no effort.

Well, NTP is really overkill for a single machine. I have rdate running every night @ 0:05 and it does the job very well...
Back to top
View user's profile Send private message
placeholder
Advocate
Advocate


Joined: 07 Feb 2004
Posts: 2500

PostPosted: Sun Dec 12, 2004 1:04 am    Post subject: Reply with quote

I use vixie-cron and I use it for syncing my clock via ntpdate along with updatedb.
Back to top
View user's profile Send private message
gentoo_lan
l33t
l33t


Joined: 08 Sep 2004
Posts: 891
Location: Charles Town, WV

PostPosted: Wed Dec 15, 2004 11:47 am    Post subject: Reply with quote

I use vixie-cron. I mainly use it for syncing the portage tree and doing a weekly prelink of my system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum