stdout as opaque dataset, how does it work?
Posted: Thu Dec 09, 2021 5:33 pm
With the new version of Switch it's possible to run an executable with "Execute command" and have the stdout written to the file as opaque dataset.
This is documented here:
https://www.enfocus.com/manuals/UserGui ... mmand.html
I would like to use that feature and wrote a simple.exe which outputs "42" when ran successfully. Its made in python3 and uses the sys.stdout.write("42") function.
example in win cmd: Now to test this I made a simple flow. In the options of the "Execute command" module I specified the simple.exe to run without any arguments.
The output should be an updated version of the inputfile and the Stdout should be attached to the inputfile as opaque dataset with the Name "s".
Also the "exit code" is being ignored.
Now the file runs to the success route but the dataset "s" is not accessible and has no value. Why is that?
at [Metadata.Text:Dataset="s",Path=""]
This is documented here:
https://www.enfocus.com/manuals/UserGui ... mmand.html
I would like to use that feature and wrote a simple.exe which outputs "42" when ran successfully. Its made in python3 and uses the sys.stdout.write("42") function.
example in win cmd: Now to test this I made a simple flow. In the options of the "Execute command" module I specified the simple.exe to run without any arguments.
The output should be an updated version of the inputfile and the Stdout should be attached to the inputfile as opaque dataset with the Name "s".
Also the "exit code" is being ignored.
Now the file runs to the success route but the dataset "s" is not accessible and has no value. Why is that?
at [Metadata.Text:Dataset="s",Path=""]