Starts file with args (no shell) in cwd. env is the child's
entire environment, and file is resolved on its PATH. With
detached: true the child is the leader of a new session and process
group, whose id is its pid. Stdin reads from /dev/null; stdout and
stderr are piped. The child is not killed when the parent exits.
Starts
filewithargs(no shell) incwd.envis the child's entire environment, andfileis resolved on its PATH. Withdetached: truethe child is the leader of a new session and process group, whose id is its pid. Stdin reads from /dev/null; stdout and stderr are piped. The child is not killed when the parent exits.