Skip to content

Instantly share code, notes, and snippets.

View huevoncito's full-sized avatar

Daniel Bernhard huevoncito

View GitHub Profile
@dansteingart
dansteingart / outout.js
Created March 9, 2012 03:00
Node Script for MongoExport
var exec = require('child_process').exec;
var child;
//Put path to mongoexport here
mel = "/Users/ardustat/Downloads/mongodb-osx-x86_64-2.0.2/bin/mongoexport"
function mongoexport(collection)
{
out_string = mel + " -csv -o "+collection+".csv -d ardustat -c "+collection+" -f time,cell_potential,working_potential,current"
child = exec(out_string, function (error, stdout, stderr)