go bindings for username lookup by UID
parent
8aebf2b291
commit
e1a7155cf5
|
@ -58,7 +58,7 @@ export default class Util {
|
||||||
const ptsArray = await this.getPTS(username);
|
const ptsArray = await this.getPTS(username);
|
||||||
if (!ptsArray) return false;
|
if (!ptsArray) return false;
|
||||||
for (const pts of ptsArray) {
|
for (const pts of ptsArray) {
|
||||||
const msg = `==SYSTEM NOTIFICATION | CLOUD SERVICES MANAGEMENT DAEMON==\n${new Date().toLocaleString('en-us')}\n\n${message}\n`;
|
const msg = `\n==SYSTEM NOTIFICATION | CLOUD SERVICES MANAGEMENT DAEMON==\n${new Date().toLocaleString('en-us')}\n\n${message}\n`;
|
||||||
await this.exec(`echo "${msg}" >> /dev/pts/${pts}`);
|
await this.exec(`echo "${msg}" >> /dev/pts/${pts}`);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue