Try to search your question here, if you can't find : Ask Any Question Now ?

How to set schedule to run a certain file at a certain timing?

HomeCategory: stackoverflowHow to set schedule to run a certain file at a certain timing?
Avatarjohn asked 5 months ago

I want to try run this file on command prompt at 10am everyday, but this code does not seem to be working.

const schedule = require("node-schedule");
var dailyJob = schedule.scheduleJob("0 0 10 * *", function() {
   console.log("Its connecting to database....");
});
dailyJob.start();
1 Answers
Best Answer
AvatarMikhail answered 5 months ago
Your Answer

11 + 16 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com