- May 20, 2016
- 264
- 107
- 136
Hello, is there are any ways to parse login data for SQ when new instance created ?
(for shell client using shelljs)
This code working pretty cool, but login credentials displayed only in ssh client (before login data all parsing normally), i think it's because of login data is showing in other output stream.
Output screenshot (duplicating because nodejs parsing)
(for shell client using shelljs)
JavaScript:
var child = shell.exec(`sudo -u root sh /root/dev/${name}/ts3server_startscript.sh start inifile=ts3server.ini`,{async:true});
child.stdout.on('data', function(data) {
console.log(data);
});
Output screenshot (duplicating because nodejs parsing)