cron doesn't run /etc/cron.d jobs why is that ?
Hello list,
For some reason, jobs defined in /etc/cron.d doesn't get picked up by
cron, while jobs from /etc/cron.{hourly,daily,weekly,monthly} do !
I have verified this by putting the following commands in /etc/cron:
$ apt-show-versions cron
cron/testing uptodate 3.0pl1-92
$ ps aux | grep cron
root 1569 0.0 0.1 1880 948 ? Ss 12:00 0:00 /usr/sbin/cron
$ ls -la /etc/cron.d/testcron
-rwxrwxrwx 1 root root 67 2005-12-25 13:47 /etc/cron.d/testcron
$ cat /etc/cron.d/testcron
*/1 * * * * root echo $(date "+%H%M%S") > /tmp/LastRunBy_cron.d
$ ls -la /etc/cron.hourly/testcron
-rwxr-xr-x 1 root root 281 2005-12-25 13:45 /etc/cron.hourly/testcron
$ cat /etc/cron.hourly/testcron
#!/bin/sh
echo $(date "+%H%M%S") > /tmp/LastRunBY_cron.hourly
I have also tried to touched /etc/crontab and even did a reboot to the system.
After letting it run for 3 hours, here is the output :
$ ls /tmp/Last*
/tmp/LastRunBY_cron.hourly
$ cat /tmp/LastRunBY_cron.hourly
171701
$
--
Cheers,
Maxim Vexler (hq4ever).
Do u GNU ?
Reply to: