I'm trying to log the output of a command (whether a Mercurial "hg tip" or an external process) and the command result is automatically added to the variable.
Let say an action will return "xxx", in my variable I get "xxx\n\nSuccess". Is there a way to avoid logging the process result?
Related to this if the process output is a valid integer and I try to log it in an integer variable FB (7.0.0.1492) crash.
If anyone is having the same problem, a possible workaround is to replace "Success" by an empty string and do a right trim, but it's still pretty hackish.
The process result is generally always logged, that’s what the log is for, it was never intended to be the source of usable data (everyone will have a different definition of usable). If you need to use the output of the action then you will have to process it using either script or other actions.
I can reproduce the integer variable problem here, will investigate.
The process result is generally always logged, that’s what the log is for
Absolutely.
> it was never intended to be the source of usable data (everyone will have a different definition of usable)
I’m used to have the process output captured and a separate variable for the return status. I am still quite new to FB and wasn’t aware of this. The trim worked and I guess redirecting the output to a file should work equally well.