Why doesn't my cron.d per minute job run?

Posted by Travis Griggs on Super User See other posts from Super User or by Travis Griggs
Published on 2013-10-23T20:33:25Z Indexed on 2013/10/23 21:56 UTC
Read the original article Hit count: 113

Filed under:
|

I have thrown a bunch of darts trying to get a python script of mine to execute every minute. So I thought I'd simplify it to just do the "simplest thing that could could possibly work" once per minute (I'm running debian/testing).

I created a single line file in /etc/cron.d/perminute:

* * * * * /bin/touch /home/me/ding_dong

It's owned by root, and executable (not sure if either of those matter). And then I did:

sudo service cron reload

And then sit back and start running ls -ltr again and again in my home directory (/home/me). But my ding_dong file never shows up. I know if I do a sudo /bin/touch /home/me/ding_dong, it shows up right away.

Obviously missing something stupid here.

© Super User or respective owner

Related posts about linux

Related posts about cron