Skip to content
Advertisement

crontab not working under arch linux

I tried to set up a schedule to remove the old file and folder after several days. I put the following code in a script file and tried to use crontab to run it every day. The find command worked fine. but the crontab seems not execute the script file.

I also use crontab for other tasks, i.e. rsync, they all work fine. I am wondering what might be the possible reason that crontab won’t work in this case. And what could I do alternatively for the job? Thanks!

JavaScript

my crontab entries are

JavaScript

the first two are the ones I set up before and work fine. The third one is the current one that won’t work.

Advertisement

Answer

Is crond running?

JavaScript

If not try to start it before debugging any further. If you have not configured sudo then use root privileges by some other means, such as logging in as root or via su command.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement