Re: cronproblem solved
On Sat, Feb 15, 2003 at 07:59:27PM +0100, Ina&Frank wrote:
>I hope I'm doing right to 'report' this.
No better way to keep opensource open. :)
There are actually two types of cron files. The /etc/crontab type and
the /var/spool/cron/crontabs/* type. The former is run by root, as a
particular user, the user field is required to so crond knows which user
to run it as. The latter can be changed by users and doesn't need a user
identifier. You might not have seen "man 5 crontab" try setting
alias man='man -a'
first then you'll have an option to see all the manpages.
If you are having problems with "crontab -e" it's probably related
to how vim and crontab use inode numbers, not worth understanding
(fixes welcome). The easy solution in this case is to create a file
/tmp/cron with your crons in it then run "crontab /tmp/cron" to install
it as a user cron, in /var/spool/cron/crontabs/
I include a line like this:
0 4 * * * crontab -l > ~/crontab-$LOGNAME-`hostname -f`
and (after it appears) just edit 'crontab-geo-trot.local' and
'crontab crontab-geo-trot.local' when I'm done.
GEORGE GEORGALIS, System Admin/Architect cell: 347-451-8229
Security Services, Web, Mail, mailto:email@example.com
Multimedia, DB, DNS and Metrics. http://www.galis.org/george