child_process = require("child_process")
path = require("path")

runChecker = ->
  cp = child_process.fork(path.join(process.cwd(),'lib/grabber.js'))
  
  cp.on "exit", ->
    return
  return true
runChecker()
#run in 5 minutes
setInterval(runChecker,300000)