Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
Ben Chirlinn
BenChirlin
Web developer in the Bay Area.
WIRED
San Francisco
Sign in to view email
http://www.benjaminchirlinn.com
View GitHub Profile
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
All gists
1
Starred
6
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
1 file
0 forks
0 comments
0 stars
BenChirlin
/
socialcron.js
Created
Aug 13, 2012
Node Cron with HTTP chained requests and request example
View
socialcron.js
var
Db
=
require
(
'mongodb'
)
.
Db
;
var
Server
=
require
(
'mongodb'
)
.
Server
;
var
cronJob
=
require
(
'cron'
)
.
CronJob
;
var
UpdateSocial
=
require
(
'./socialupdate.js'
)
.
UpdateSocial
;
var
mydb
=
new
Db
(
'node_mongo_social'
,
new
Server
(
'localhost'
,
27017
,
{
auto_reconnect
:
true
}
,
{
}
)
)
;
mydb
.
open
(
function
(
)
{
}
)
;
// Init
console
.
log
(
"Starting cron"
)
;
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.