[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] crontab problem



On Wed, Jan 29, 2003 at 10:21:39PM +0100, Cyril Chaboisseau wrote:

> > who knows what's the problem with crontab?
> > when i do "crontab -u pippo -e" firstly it says "file saved" but then "no
> > changes to crontab".
> > and if i try "crontab -l" it's empty

hmm i thought he forgot something, "crontab -l -u pipo"
if your change crontab as another user ( root ) you only call crontab -l
theres no entry :) 

I`m running here also unstable but i`m not able to verfy the bug.

amu@tr:~$ echo $EDITOR
vim
amu@tr:~$ crontab -e
crontab: installing new crontab
amu@tr:~$ crontab -l  
* * * * * echo foo
* * * * * echo bar
amu@tr:~$

ii  cron           3.0pl1-73      management of regular background
processing



http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=149908

Bug is reported as 3.0pl1-72, changelog say nothing about this
problem. 


> I had the same problem with a plain Debian (unstable)
> 
> the problem seems to be with vim that doesn't return the right value to
> crontab which doesn't realize the file has changed
> 
> so then crontab just discard the change and doesn't install the new
> version
> 
> one reason comes from the fact that there is a bug triggerred when /tmp
> is  a symlink (to whatever directory somewhere else)
> 
> here is another explanation about the syscall fstat64 and the
> interaction between crontab and vim :
> http://www.uwsg.iu.edu/hypermail/linux/kernel/0110.3/0668.html
> 
> 
> to circumvent this "bug" :
> 
> 1) if you change the EDITOR value with another one (nvi, emacs,
> whatever) it should work fine
> 
> 2) just have /tmp as a real directory instead of a symlink (not easy
> with knoppix but could be done with a real installation)
> 
> 3) another way to have vim to work with crontab is to have the "set
> compatible" option in /etc/vim/vimrc (or ~/.vimrc) instead of the Debian
> default "set nocompatible"
> 
> this option could be set as default in knoppix (and maybe even in Debian
> but that's just another story)
> 
> 
> 'hope this helps
> 

-- 
Andreas Mueller

The Debian Project			amu@linux.de 			
http://www.debian.org			amu@debian.org
				andreas.mueller@credativ.de
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: