I am looking for a good solution on fire different javascript files with nodejs at a given time on a Server running on Ubuntu.
I have about 10 different scripts and each should be fired 15 times a day! My first approach was to use at but this gets really messy with that much events.
Now I thought about using Node-Schedule what some of you guys here on SO suggested but I'm not sure if that's the best solution for my task ...
If Node-Schedule should still be the best approach - what structure would you use?
var schedule = require('node-schedule');
var d1 = new Date(2015, 10, 20, 18, 55, 0);
var d2 = new Date(2015, 10, 20, 18, 58, 0);
var xd1 = schedule.scheduleJob(d1, function(){
test.js;
});
var xd2 = schedule.scheduleJob(d2, function(){
test.js;
});
Doesn't seems that DRY ... ;)