Stuff in /etc/cron.d/ won' work?

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



Hey there,

I just noticed that I just couldn't get cron to properly execute stuff
in /etc/cron.d/ no matter what I did.
Let's say I have /etc/cron.d/lol with this content:
* * * * * root echo "lol" >> /tmp/omg
and restart crond afterwards, the crond log tells me that cron actually
runs this command every minute without a problem. Sadly, this isn't the
case and the file at /tmp/omg is created but remains without contents.
In contrast, if I put an executable script to /etc/cron.hourly/lol with
the content:
echo "lol" >> /tmp/omg
then the file at /tmp/omg fills up with lots of "lol"s after a couple of
hours.
It also works fine if I put it into the crontab.

Now, I'd like to be able to use /etc/cron.d/ as well because it seems
more transparent to me. Is there anything I do inherently wrong?

-- Sven-Hendrik


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux