Re: Crontab doesn't run jobs



Jean-David Beyer ha scritto:
VP wrote:
I usually put on my debian systems an auto poweroff entry with

crontab -e

30 18 * * * /sbin/poweroff

as root. crond is running, but at the time specified nothing happens.

what can be?

You want it to shutdown your machine at 6:30PM everyday? I assume you do.

Were you logged in as root when you did that? What does /var/spool/cron look like (i.e, ls -l /var/spool/cron)?

man poweroff ?


18:30 was just an example, it's a small samba share server that should turn off on 20:00.

Yes, i did it as root, also tried to create /etc/cron.allow with ALL, but nothing.

I tried also to change different simple commands, as touch /tmp/example or something. So it seems any job wouldn't start.

I have also enabled logging but seems it logs just my crontab -e edits

ls -l /var/spool/cron returns:

drwxrwx--T 2 daemon daemon 24 2008-11-30 16:07 atjobs
drwxrwx--T 2 daemon daemon 8 2008-11-29 19:36 atspool
drwx-wx--T 2 root crontab 4096 2008-12-01 00:45 crontabs
.



Relevant Pages

  • RE: redhat-list digest, Vol 1 #8436 - 23 msgs
    ... i am unable to crontab -l or crontab -e as user root. ... usb memory key ... iTunes inside of VMWare inside of Windows ... When you plug the memory stick in, log in as root and use 'fdisk -l /dev/sda' to look at the partition table. ...
    (RedHat)
  • [Fwd: OpenBase SQL multiple vulnerabilities Part Deux]
    ... # Writing to roots crontab seems to be fairly prompt at handing out root shells ... This ensures that cron is running when the fake root crontab is created. ... the OpenBase family of products have been enabling some of the most innovative business applications ...
    (Bugtraq)
  • Re: Cron job question
    ... > From: root@somedomain.nl (Cron Daemon) ... You've made the classic mistake of confusing the system crontab ... extra column defining which user ID the command should be run as. ... any new cron jobs for any user (including root) and leave the system ...
    (freebsd-questions)
  • Re: error email from Cron
    ... >>Well, I've found the problem, but still don't know how to fix it. ... > No, you run cron, not crontab. ... and once as root. ... >>Below is an excerpt from the cron log. ...
    (linux.redhat.misc)
  • Re[2]: Cron job question
    ... MS> extra column defining which user ID the command should be run as. ... MS> crontab file, which is managed using the crontabcommand. ... MS> any new cron jobs for any user (including root) and leave the system ...
    (freebsd-questions)