Answers for "fs exec child process"

0

fs exec child process

const { exec } = require('child_process');

exec('"/path/to/test file/test.sh" arg1 arg2');
// Double quotes are used so that the space in the path is not interpreted as
// a delimiter of multiple arguments.

exec('echo "The \\$HOME variable is $HOME"');
// The $HOME variable is escaped in the first instance, but not in the second.
Posted by: Guest on September-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language