MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / shellEscape

Function shellEscape

ssh/ssh.ts:32–37  ·  view source on GitHub ↗
(arg: string)

Source from the content-addressed store, hash-verified

30 const child = execFile(command, args);
31 child.once("error", reject);
32 child.once("close", (code) => {
33 if (code === 0) resolve();
34 else reject(new Error(`${command} exited with code ${code ?? "unknown"}`));
35 });
36 child.stdin?.end(input);
37 });
38}
39
40async function saveIptablesRules(): Promise<void> {

Callers 4

modifySSHConfigFunction · 0.85
generateSSHKeysMethod · 0.85
changePasswordMethod · 0.85
enableRootAccountMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected