psproxy
Version:
Executable for enabling or disabling proxy settings for Junos Pulse Secure VPN
17 lines (13 loc) • 379 B
JavaScript
var spawn = require('child_process').spawn;
function psproxy(setting) {
var arg;
if (setting === true || setting === 'on')
arg = 'on';
else if (setting === false || setting === 'off')
arg = 'off';
else
arg = '';
var childProcess = spawn('sh', [__dirname + '/bin/psproxy.sh', arg]);
childProcess.stdout.pipe(process.stdout);
}
module.exports = psproxy;