09-27-2021 07:49 AM
Hi,
I need to call CLI from TS. The response is a string containing NULL (\00
) characters. TS cuts the response where the NULL is. In general, TS does not allow you to have NULL in the string, so how to deal with this limitation?
If I call CLI from LV I have "AAAA\00
BBBB".
If I call CLI from TS I have "AAAA".
How can I configure Call Executable step to return a complete response?
09-27-2021 08:14 AM
09-27-2021 09:39 AM
I know I can change that normally but how can I apply this to Call Executable step to read std out?
09-27-2021 10:47 AM - edited 09-27-2021 11:03 AM
The only solution for Call Executable I found is to save stdout to a temp file and then use mscorlib to read it and replace NULL with space in the process (see below).
This way I don't need to create extra code for code modules.
Another option without extra code modules is to use .NET System.Diagnostics.Process.Start()
(attachment). But in this case, we will get rid of Call Executable.