title: Scheduled Task, Open URL/PHP file every n minutes based on value in MySQL DB in Raspberry Pi
body: <p>I'm hoping someone can help me find the best/easiest solution for a problem I'm having. I have a Raspberry Pi (Raspbian) that is operating a LAMP server. I am looking for a simple way to call one of the local PHP files every <em>n</em> minutes based on a record stored on the local MySQL database. The file is available at a local and remote URL so both of those are options as well.</p>
  
  <p>I considered using a cron job but I don't know of any way to use a variable amount of time for this task.</p>
  
  <p>I'm using this PHP file to execute some basic tasks and post data to a Spark Core so until I get this figured out, I'm stuck manually calling the URL.</p>