First time here? Check out the Help page!
1 | initial version |
It is possible to get the E+ output from the OpenStudio CLI, the OpenStudio App is using the CLI behind the scenes after all, but it is not currently as simple as you would expect.
First, note that the CLI has a --verbose
option that will give you much more output, however this output pertains to what the CLI is doing and the steps that it is proceeding through in the workflow. Even the --verbose output does not include the E+ standard out.
There is another option, -s
, to pipe the standard output of E+ to a socket. This is actually what the OpenStudio App is doing. I realize this is not convenient for many use cases, including probably yours, but for the sake of completeness, I'll try to explain one way of using this option. It is in fact a bit obscure and perhaps we can revise the options to make it easier to see the E+ standard out in the future.
Here's one way to use the -s
option:
Use the "netcat" utility to setup a socket listener. The command is named nc
and it probably does not come standard on MS Windows, but you can download it. In order to setup a listener on port 1235 enter the command, nc -l 1235
.
In another command prompt use the OpenStudio CLI in the normal way but add the -s option passing the port 1235 (or any other available port, nc will fail to execute if 1235 is taken) as an option. openstudio run -s 1235 -w workflow.osw
.
Like I said, not exactly convenient, but if you successfully started the nc utility, you should see E+ output in the command window where you started nc.