This commit is contained in:
William Mantly 2016-05-27 00:52:39 -04:00
parent 8c32b2e246
commit 1086baf65a

2
lxc.js
View File

@ -4,7 +4,7 @@ var exec = require('child_process').exec;
function sysExec(command, ip, callback){ function sysExec(command, ip, callback){
ip = ip || '104.236.77.157'; ip = ip || '104.236.77.157';
command = new Buffer(command).toString('base64') command = new Buffer(command).toString('base64')
command = 'ssh -o UserKnownHostsFile=/dev/null virt@'+ ip + ' "echo ' + command + '|base64 --decode|bash"'; command = 'ssh -o StrictHostKeyChecking=no virt@'+ ip + ' "echo ' + command + '|base64 --decode|bash"';
// command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command; // command = 'unset XDG_SESSION_ID XDG_RUNTIME_DIR; cgm movepid all virt $$; ' + command;
return exec(command, (function(callback){ return exec(command, (function(callback){