Skip to content

Deno.run executes some programs immediately but others #11723

Answered by sant123
sant123 asked this question in Q&A
Discussion options

You must be logged in to vote

This is solved by Deno.spawn:

const p1 = await Deno.spawn("echo", {
  args: ["deno"],
  stdout: "inherit",
});

const p2 = await Deno.spawn("deno", {
  args: ["run", "child.ts"],
  stdout: "inherit",
});

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@sant123
Comment options

@nayeemrmn
Comment options

@lucacasonato
Comment options

@nayeemrmn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sant123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants