crontab does not work anymore

claudiu claudiu.vlad at gmail.com
Mon Nov 20 20:12:39 UTC 2006


Here it is:

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2006-11-11 22:55 /bin/sh -> bash


# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root   run-parts --report /etc/cron.hourly
25 6    * * *   root   test -x /usr/sbin/anacron || 
run-parts --report /etc/cron.daily
47 6    * * 7   root   test -x /usr/sbin/anacron || 
run-parts --report /etc/cron.weekly
52 6    1 * *   root   test -x /usr/sbin/anacron || 
run-parts --report /etc/cron.monthly
#




În data de Lun 20 Noi 2006 21:47, Thilo Six a scris:
> claudiu wrote the following on 20.11.2006 20:10:
> > I have a big problem with crontab in ubuntu dapper.
> > Recently I accidentally did:
> >
> > 	$ sudo crontab /etc/crontab
> >
> > and I started receiving this by email, instead of the usual reports:
> >
> > 	/bin/sh: root: command not found
> >
> > I noticed that /etc/crontab MAY have user name in it, not like ".crontab"
> > files. Anyway, I erased root's crontab by doing:
> >
> > 	sudo crontab -r
> >
> > And now I don't receive any emails at all.
> > I need to know how to fix this ASAP!!!!
> > Thank you!
>
> what gives you:
> $ ls -l /bin/sh
>
> ?
>
> Could you poste your former crontab?
>
> bye Thilo
> --
> i am on Ubuntu 2.6 KDE
> - some friend of mine
>
> gpg key: 0x4A411E09




More information about the kubuntu-users mailing list