const scheduler = new ToadScheduler()
const SSH = require('child_proccess')
const task = new Task('simple task', () => {
try{ var msg = SSH.execSync('node main.js') } catch (err){ console.error(err.toString()) }
})
const job = new SimpleIntervalJob({ seconds: 120, }, task)
scheduler.addSimpleIntervalJob(job)