I encounter a strange error here:
I’m launching a child process, basically a process call followed by one argument. But the process gets executed the way it will when called with no argument. I tried both, supplying the process call and the argument with a StringVector or combined in a single String.
This is the code snippet that recreates the error:
ChildProcess childProcess; String cmd = "uhd_usrp_probe --args=\"addr=asdf\""; DBG (cmd); childProcess.start (cmd); DBG (childProcess.readAllProcessOutput());
This runs fine and the process output looks the way it should look when the command is called with NO arguments. However pasting the command string printed by the first DBG statement to the Terminal results in an error complaining about invalid arguments, as
--args="add=asdf" is obviously nonsense It normally would expect an IP address here and at the moment I can pass any valid and invalid IP address here.
However, I couldn’t recreate the error with some other process call, which makes it maybe a bit difficult for others to recreate my error. Any idea of what could be the problem with this call?