Answer the question
In order to leave comments, you need to log in
Schedule cron nodejs?
Help with scheduling
var http=require('http'),
request=require('request'),
fs=require('fs'),
cron=require('cron'),
cronJob=cron.job("10 0 * * * *",function(){
});
cronJob.start();
Answer the question
In order to leave comments, you need to log in
cron has no seconds.
If you need it in seconds, then run it every minute and in the script itself repeat 6 times with an interval.
The first digit of the crown is minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question