cancel
Showing results for 
Search instead for 
Did you mean: 

command line output is not returning to the object all output

AdamSzummer
Level 2
​I am running Python script by executing command in command line using Utility General - Execute Command where as an input there is a text with a command to execute and as an output message defined as std.out

In some cases the output message received in the BP object back from CMD is not complete, there are missing few last text lines of output expected from the script.

It is used later in the process as a validation, threfore because of this some validations are wrongly rejected only because output did not contain some validation text in the output message even thou the script was completed.

------------------------------
Adam Szummer
------------------------------
2 REPLIES 2

james.man
Staff
Staff
Hello,

Could you provide an example of how the output looks if run directly from the command line (without Blue Prism in the picture), and what the output is if run from the Blue Prism "Execute Command" action? Would it be possible to pipe the output of the script into a temporary text file (such as python.exe scriptxyz.py > c:\temp\outputfile.txt"), and then read that file into Blue Prism?

------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------

Also, is the "Utility General - Execute Command" a custom action that you've built yourselves, or did you mean one of the "Utility - Environment" Actions such as "Start Process" or  "Run Process Until Ended"?

------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------