Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
i want to implement this node.js based code in deno. const { execSync } = require("child_process");
execSync(`deno run -A deno.ts &`, { stdio: [0, 1, 2], cwd: process.cwd() }); |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should be able to simply remove the shell syntax, and ignore the result, which would let it run completely in the background: const cmd = ["deno", "run", "-A", "deno.ts"];
Deno.run({ cmd }); This is what the Node.js example did too - it simply ignored it; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to try run
deno run -A deno.ts &
usingDeno.run
but it doesn't work.
Is there anything missing?
Beta Was this translation helpful? Give feedback.
All reactions