MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / runFile

Function runFile

daemon/src/service/network_limit_service.ts:16–22  ·  view source on GitHub ↗
(
  command: string,
  args: string[] = []
)

Source from the content-addressed store, hash-verified

14}
15
16async function runFile(
17 command: string,
18 args: string[] = []
19): Promise<{ stdout: string; stderr: string }> {
20 const { stdout, stderr } = await execFileAsync(command, args, { timeout: COMMAND_TIMEOUT_MS });
21 return { stdout: String(stdout || ""), stderr: String(stderr || "") };
22}
23
24function getErrorText(err: any): string {
25 return `${err?.stderr || ""}\n${err?.stdout || ""}\n${err?.message || ""}`;

Callers 3

execWithSudoFunction · 0.85
readFileWithSudoFunction · 0.85
readContainerIflinkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected