Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-31-2006, 06:11 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
crontab -e doesn't work after upgrade


This has happened to me before, but now it has happened again upgrading from Slackware 10.2 to 11.0.

When I edit root's crontab via crontab -e, the changes _never_ get reflected in the actual file /var/spool/cron/crontabs/root. In the past, I've just worked around this problem by editing /var/spool/cron/crontabs/root manually. I can certainly continue to do this, but I'd like to figure out why it doesn't work. :-)

Has anyone else had & solved this problem?
Old 10-31-2006, 07:24 PM   #2
Registered: Oct 2004
Distribution: Slackware, Mint
Posts: 122

Rep: Reputation: 16
Try this:
Old 11-01-2006, 12:22 PM   #3
LQ Newbie
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
re: crontab -e doesn't work after upgrade

Lo and behold,

set backupcopy=yes

in /usr/share/vim/vimrc does the trick.

Thank you.
Old 04-21-2009, 10:42 AM   #4
LQ Newbie
Registered: Apr 2009
Location: Kharkiv, UA
Distribution: Slackware
Posts: 18

Rep: Reputation: 7
Originally Posted by gbltech View Post

set backupcopy=yes

in /usr/share/vim/vimrc does the trick.
imho slightly better way will be:

set backupskip+=/var/spool/cron/*
in /usr/share/vim/vimrc, and it would be much better if it is a default setup in the vim package.

This will disable the backup feature for files in /var/spool/cron/ where dcron puts its temporary crontab files and leaves the backup feature on for those who like it. btw, default vim build adds /tmp to backupskip option for the same "crontab reason" - some other distributions' crontab puts the temporary files there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab -e username doesn't work BiThian Linux - General 3 10-13-2006 10:31 AM
crontab doesn't work, but everything is set correctly ttilt Linux - General 10 06-16-2005 05:44 PM
work with crontab juanb Linux - General 1 06-05-2004 09:29 AM
crontab does not work need help Xris718 Linux - General 10 04-18-2004 08:55 PM
crontab won't work John Galt Linux - General 32 08-20-2003 01:44 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration