title: Run a php script with cron in mac
body: <p>I am trying to run in mac a php script using cron. I want this php script to run every one minute. I read several sources online and from my understanding is better if I use launchd. In any case, I try to make it work with cron and then if it works fine I might try to use launchd.</p>
  
  <p>So here is what I do:</p>
  
  <p>I wrote this command in a txt file:  </p>
  
  <pre><code>    * * * * * /usr/bin/php /Applications/MAMP/htdocs/php_test/main_script.php
  </code></pre>
  
  <p>There I have the path to php (I found it with the "which php" command) and the path to my php script.</p>
  
  <p>I named the txt file: crontasks.txt and I run it through terminal with this command:</p>
  
  <pre><code>       crontab /Users/dkar/Desktop/crontasks.txt
  </code></pre>
  
  <p>When I list the crons (crontab -l) I see that this job is listed. But nothing comes as output every one minute. The output is supposed to be an image stored in a specified folder. What am I missing here?
  Thanks in advance
  D.</p>