title: scheduling process in node.js
body: <p>Am working with a scheduling process in <code>node.js</code></p>
  
  <p>for that i write a sample <code>script.js</code> file and it is executed correctly with no issues</p>
  
  <pre><code> // it executes every sunday at 14:29PM
          var rule = {hour: 14, minute: 29, dayOfWeek: 0};
          schedule.scheduleJob(rule, function(){
            console.log("Execute me at sunday .............")
          });
  </code></pre>
  
  <p>The above code will only execute at sunday 14:29PM.</p>
  
  <p>But while using the above same code as follows it executes every time</p>
  
  <pre><code>var schedule = require('node-schedule');
  var http = require('http');
  
  
  
   var jobScedule = function (time, jobid) { 
          schedule.scheduleJob(time, function () {
  console.log("execute me at sunday") // it executes every time when i called this function
              console.log(time);
          });
      }
  exports.jobScedule = jobScedule;
  </code></pre>
  
  <p>i calls in another file</p>
  
  <pre><code> var objSchedule = require('./script.js');
   var rule = {hour: 23, minute: 60, dayOfWeek: 0};
   objSchedule.jobScedule(rule, jobid);
  </code></pre>