Skip to content

Trouble executing nanotts via Node.js child_process.exec #8

@clickworkorange

Description

@clickworkorange

Trying to talk to nanotts from Node.JS i get an error regardless of how I format the command string:

exec("nanotts -c -i \"hello\"", function (err, stdout, stderr) {
...
});
Error: Command failed: nanotts -c -i "hello"
 **error: multiple inputs
exec("nanotts -c -i hello", function (err, stdout, stderr) {
...
});
Error: Command failed: nanotts -c -i hello
 **error: multiple inputs
exec("nanotts -c hello", function (err, stdout, stderr) {
...
});
Error: Command failed: nanotts -c hello
 **error: trailing commandline arguments
exec("nanotts hello", function (err, stdout, stderr) {
...
});
Error: Command failed: nanotts hello
 **error: trailing commandline arguments
exec("nanotts -i \"hello\" -c", function (err, stdout, stderr) {
...
});
Error: Command failed: nanotts hello
 **error: trailing commandline arguments
exec("nanotts -i 'hello' -c", function (err, stdout, stderr) {
...
});
Error: Command failed: nanotts -i 'hello' -c
 **error: multiple inputs

How should I format my command line to avoid this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions