title: Workload Scheduler for Node.js script - is it equivalent to cron jobs in Bluemix?
body: <p>I'm trying to call <code>node file.js</code> with Bluemix Workload Scheduler every morning; file.js is in the root of my node.js project; file.js is not my server file. I used to use cron but it seems like <a href="https://developer.ibm.com/answers/questions/7769/how-can-we-add-a-cron-job-in-bluemix.html" rel="nofollow">"BlueMix doesn't have a concept of cron jobs."</a></p>
  
  <p>As result for the (only) step of my process, I got "node : command not found"</p>
  
  <p>I think I missed something. Is it even possible to do this with Workload Scheduler or should I find alternative options?</p>
  
  <p>MORE INFORMATION</p>
  
  <p>I'm trying to do :</p>
  
  <pre><code>var wls = new WorkloadService(credentials);
  
  var wp = new WAProcess("MyProcessName", "DescriptionProcess");
  wp.addStep(new CommandStep("node file.js", myAgentName));
  wp.addTrigger( TriggerFactory.repeatDaily(1) );
  
  wls.createAndEnableTask(wp, function(res){
      wls.runTask(res.id, function(){console.log("Process is created and started.")});
  });
  </code></pre>
  
  <p>I can see in "IBM Workload Automation on Cloud - Application Lab" that the process is created and started. A few later, process has failed saying "node command not found"</p>
  
  <p>I think i read in the documentation that the agent can only call local system commands (such as cat, pwd ... ) or commands that interact with outside (for REST services call). So there's no way it can find node command or file.js. </p>
  
  <p>Unless I install everything on the agent ? Documentation says we can install programs in <code>/home/wauser/workspace</code> directory by using <strong>curl</strong> command. Is that how I should proceed ?</p>