Hey everyone,
Let's say I have the following SilkJS script;
------------------------------------
// Some includes ....
var result = true;
// Some code - that often writes to stdout on error.
if(there was an error) {
result = false;
};
return result;
}
--------------------------------------
Now, let's say I execute that script from SilkJS with;
var success = process.exec('path/to/the/above/script');
Then, the variable success will contain a string of all the stdout text, and the result.
How do I ONLY get the result back to the SilkJS program that executed the above script?
Thanks,
Eric