UNPKG
grabbed
Version:
latest (0.0.1)
0.0.1
grabs emails and pulls attachments and dumps into a folder.
grabbed
/
src
/
index.coffee
12 lines
(10 loc)
•
258 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
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
)