박은주

Modified scheduler

Showing 1 changed file with 5 additions and 2 deletions
...@@ -18,9 +18,12 @@ app.use(express.static(__dirname + '/static')); ...@@ -18,9 +18,12 @@ app.use(express.static(__dirname + '/static'));
18 18
19 function update() { 19 function update() {
20 console.log('Updating . . .'); 20 console.log('Updating . . .');
21 - spawn('python3', ["run.py"]) 21 + var getdata = spawn('python3', ["run.py"])
22 + getdata.stdout.on('data', function(data) {
23 + console.log(data.toString());
24 + })
22 } 25 }
23 -setInterval(update, 1000 * 60 * 60 * 3) 26 +setInterval(update, 1000 * 60 * 60 * 2)
24 27
25 var server = http.createServer(app).listen(port, function(){ 28 var server = http.createServer(app).listen(port, function(){
26 console.log("Server Running . . ."); 29 console.log("Server Running . . .");
......