testing
This commit is contained in:
parent
1644812213
commit
fe838a7719
7
lxc.js
7
lxc.js
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user