title: crontab not working under arch linux
body: <p>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. </p>
  
  <p>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!</p>
  
  <pre><code>#!/bin/bash -x
  
  find /media -type d -ctime +18 | xargs rm -rf
  </code></pre>
  
  <p>my crontab entries are</p>
  
  <pre><code>10 09 * * * /root/rsync-shell.sh &amp;
  20 09 * * * /root/chg3gp2avi.sh &amp;
  30 09 * * * /root/clean_files_10days.sh &amp;
  </code></pre>
  
  <p>the first two are the ones I set up before and work fine. The third one is the current one that won't work.</p>