title: Crontab for php script that will run a nodejs script
body: <p>I set a crontab that would run a PHP script every min to check if my steam bot is in game, and if he's not, run a node js script.</p>
  
  <p>This is my crontab:</p>
  
  <p><code>* * * * * /usr/bin/php /home/cron/checkStatus.php &gt;/dev/null 2&gt;&amp;1</code></p>
  
  <p>This is my PHP script:</p>
  
  <p><code>shell_exec("screen -AdmS bot /usr/local/bin/node /home/node_modules/mine/script.js");
  </code></p>
  
  <p>When I run the command myself, the node js script launches, however, when the crontab tries to launch the node js script, well, nothing happens. Ideas?</p>