Re: location of user crontab files?
>> On Tue, Aug 11, 2009 at 07:21:08PM -0400, Karl Vogel typed: K> If you're using individual crontab files, be sure to rename /etc/crontab K> or you might have duplicated cronjobs running simultaneously. >> On Wed, 12 Aug 2009 11:31:14 +0200, Ruben de Groot >> said: R> I don't think this is sound advise. Leaving /etc/crontab (the system R> crontab) to do the system maintenance jobs it is supposed to do and R> putting additional scripts and jobs in user tabs is normal practice and R> won't cause any problems. I don't like keeping similar information in multiple places (especially in different formats) because you have to access it in different ways. If I change my own crontab file using "crontab -e", I want to do root's the same way; it's just one less exception for me to remember. -- Karl Vogel I don't speak for the USAF or my company The idea that 'the public interest' supersedes private interests and rights can have but one meaning: that the interests and rights of some individuals take precedence over the interests and rights of others. --Ayn Rand ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: location of user crontab files?
Ruben de Groot wrote: > On Tue, Aug 11, 2009 at 07:21:08PM -0400, Karl Vogel typed: On Tue, 11 Aug 2009 10:50:54 -0400, Identry said: >> I> Where are user crontab files stored in the file system? I want to make >> I> sure this info is backed up. >> >>They're in /var/cron/tabs. If you're using individual crontab files, >>be sure to rename /etc/crontab or you might have duplicated cronjobs >>running simultaneously. > > I don't think this is sound advise. Leaving /etc/crontab (the system crontab) > to do > the system maintenance jobs it is supposed to do and putting additional > scripts and > jobs in user tabs is normal practice and won't cause any problems. I've learned not to touch /etc/crontab at all. Saves some time during upgrades/mergemaster. -- Frederique ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: location of user crontab files?
On Tue, Aug 11, 2009 at 07:21:08PM -0400, Karl Vogel typed: > >> On Tue, 11 Aug 2009 10:50:54 -0400, > >> Identry said: > > I> Where are user crontab files stored in the file system? I want to make > I> sure this info is backed up. > >They're in /var/cron/tabs. If you're using individual crontab files, >be sure to rename /etc/crontab or you might have duplicated cronjobs >running simultaneously. I don't think this is sound advise. Leaving /etc/crontab (the system crontab) to do the system maintenance jobs it is supposed to do and putting additional scripts and jobs in user tabs is normal practice and won't cause any problems. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: location of user crontab files?
>> On Tue, 11 Aug 2009 10:50:54 -0400, >> Identry said: I> Where are user crontab files stored in the file system? I want to make I> sure this info is backed up. They're in /var/cron/tabs. If you're using individual crontab files, be sure to rename /etc/crontab or you might have duplicated cronjobs running simultaneously. I use the file header beneath my signature for crontab files, so I don't forget what field goes where. It's also handy to define an environment variable in case a program should behave differently when run under cron. -- Karl Vogel I don't speak for the USAF or my company # # Everything on a line is separated by blanks or tabs. # Set CRON so scripts know when they're being run non-interactively. CRON=yes SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin # #+--- Minute (0-59) #| +--- Hour (0-23) #| | +- Day(1-31) #| | | +- Month (1-12) #| | | | +- Day of week (0-6, 0=Sunday) #| | | | |+ Command to be run #| | | | || #v v v v vv # # Jobs queued for later execution */5 * * * */usr/libexec/atrun # # Do daily/weekly/monthly maintenance 13 * * *periodic daily 10 22* * *periodic evening 15 4 * * 6periodic weekly 30 5 1 * *periodic monthly .. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: location of user crontab files?
Identry wrote: > Where are user crontab files stored in the file system? /var/con/tabs -- F ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
location of user crontab files?
Where are user crontab files stored in the file system? I used to create user crontab files and then load them with 'crontab name-of-cronfile', but then I got clever and discovered 'crontab -e'. The problem is, that doesn't give me the 'backup' of having a text crontab file. The system must store the info somewhere so it's available after a reboot, but where? I want to make sure this info is backed up. Thanks: John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"