This commit is contained in:
William Mantly 2016-01-30 00:26:17 -05:00
parent 1644812213
commit fe838a7719

7
lxc.js
View File

@ -1,11 +1,16 @@
'use strict';
var exec = require('child_process').exec;
var callback_parse = callbackParse(err, data, stderr, callback){
console.log(arguments)
return callback(data, err, stderr)
};
function sysExec(command, callback){
command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command;
callback = callback || function(){};
return exec(command, callback);
return exec(command, callback_parse(callback));
};
var lxc = {