title: Running c++ program with Cron
body: <p>I'm trying to run a c++ program on my server, which, for now, is updating a MySQL database. I'm running it with Cron. The program is compiling and running on my own computer (Ubuntu 10.10), but I can seem to get something working on my server.</p>
  
  <p>I checked if cron is working for me with a PHP script, but I don't know what to do to run a c++ program. In directAdmin I'm using the command:</p>
  
  <pre><code>/home/rogier/domains/ditiseenwinkel.nl/public_html/test/program &amp;&gt;/home/rogier/domains/ditiseenwinkel.nl/public_html/test/testsql2.log  
  </code></pre>
  
  <p>Where <code>program</code> is my compiled program. Strange thing: the logfile is empty. </p>
  
  <p>What am I doing wrong? And how should I run a c++ program via Cron?</p>
  
  <p>Thanks in advance!</p>