MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / bootTime

Function bootTime

e2e/src/vm/ec2.ts:317–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315 };
316
317 const bootTime = async (): Promise<string> =>
318 os === "windows"
319 ? (
320 await ssh("(Get-CimInstance Win32_OperatingSystem).LastBootUpTime.ToString('o')")
321 ).stdout.trim()
322 : (await ssh("cat /proc/sys/kernel/random/boot_id")).stdout.trim();
323
324 const handle: VmHandle = {
325 os,

Callers 1

ec2VmFunction · 0.85

Calls 1

sshFunction · 0.70

Tested by

no test coverage detected