Effect CommunityEC
Effect Community2y ago
4 replies
leonitous

Detaching a subprocess with `@effect/platform/CommandExecutor`

Is it possible to start a subprocess in the background (detached) using @effect/platform/CommandExecutor? This is what I am using right now:

import * as exec from "node:child_process";

const subprocess = exec.spawn(command, args, {
    detached: true,
    stdio: "ignore",
});
subprocess.unref();
Was this page helpful?