<li><p><strong>inGSettings</strong>– Agent global settings dict</p></li>
<li><p><strong>inGSettings</strong>– Agent global settings dict</p></li>
<li><p><strong>inSendOutputToOrchestratorLogsBool</strong>– True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True</p></li>
<li><p><strong>inSendOutputToOrchestratorLogsBool</strong>– True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True</p></li>
<li><p><strong>inCMDEncodingStr</strong>– Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is “cp1251” early was “cp866” - need test</p></li>
</ul>
</ul>
</dd>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p></p>
</dd>
</dl>
</dl>
<p>!ATTENTION! If you need to start absolutely encapsulated app - set this flag as False. If you set True - the app output will come to Agent
:param inCMDEncodingStr: Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is “cp1251” early was “cp866” - need test
<spanclass="kn">from</span><spanclass="nn">.</span><spanclass="kn">import</span><spanclass="n">O2A</span><spanclass="p">,</span><spanclass="n">A2O</span><spanclass="c1"># Data flow Orchestrator To Agent</span>
<spanclass="kn">from</span><spanclass="nn">.</span><spanclass="kn">import</span><spanclass="n">O2A</span><spanclass="p">,</span><spanclass="n">A2O</span><spanclass="c1"># Data flow Orchestrator To Agent</span>
<spanclass="kn">from</span><spanclass="nn">subprocess</span><spanclass="kn">import</span><spanclass="n">CREATE_NEW_CONSOLE</span><spanclass="c1"># Flag to create new process in another CMD</span>
<spanclass="kn">from</span><spanclass="nn">subprocess</span><spanclass="kn">import</span><spanclass="n">CREATE_NEW_CONSOLE</span><spanclass="c1"># Flag to create new process in another CMD</span>
<spanclass="sd"> :param inGSettings: Agent global settings dict</span>
<spanclass="sd"> :param inGSettings: Agent global settings dict</span>
<spanclass="sd"> :param inSendOutputToOrchestratorLogsBool: True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True</span>
<spanclass="sd"> :param inSendOutputToOrchestratorLogsBool: True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True</span>
<spanclass="sd"> !ATTENTION! If you need to start absolutely encapsulated app - set this flag as False. If you set True - the app output will come to Agent</span>
<spanclass="sd"> :param inCMDEncodingStr: Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is "cp1251" early was "cp866" - need test</span>
<spanclass="sd"> :param inCMDEncodingStr: Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is "cp1251" early was "cp866" - need test</span>
<spanclass="n">lMessageStr</span><spanclass="o">=</span><spanclass="sa">f</span><spanclass="s2">"</span><spanclass="si">{</span><spanclass="n">lOSCMDKeyStr</span><spanclass="si">}</span><spanclass="s2">: # # # # AGENT CMD Process has been STARTED # # # # "</span>
<spanclass="n">lMessageStr</span><spanclass="o">=</span><spanclass="sa">f</span><spanclass="s2">"</span><spanclass="si">{</span><spanclass="n">lOSCMDKeyStr</span><spanclass="si">}</span><spanclass="s2">: # # # # AGENT CMD Process has been STARTED # # # # "</span>
<spanclass="k">if</span><spanclass="n">inSendOutputToOrchestratorLogsBool</span><spanclass="o">==</span><spanclass="kc">True</span><spanclass="p">:</span><spanclass="c1"># Capturing can be turned on!</span>
<spanclass="n">lStr</span><spanclass="o">=</span><spanclass="n">lOutputLineBytes</span><spanclass="o">.</span><spanclass="n">decode</span><spanclass="p">(</span><spanclass="n">inCMDEncodingStr</span><spanclass="p">)</span><spanclass="c1"># was cp866, on win server don't work properly - set cp1251</span>
<spanclass="n">lStr</span><spanclass="o">=</span><spanclass="n">lOutputLineBytes</span><spanclass="o">.</span><spanclass="n">decode</span><spanclass="p">(</span><spanclass="n">inCMDEncodingStr</span><spanclass="p">)</span><spanclass="c1"># was cp866, on win server don't work properly - set cp1251</span>
<spanclass="k">if</span><spanclass="n">lCMDProcessPoll</span><spanclass="ow">is</span><spanclass="kc">None</span><spanclass="p">:</span><spanclass="c1"># Process is alive - wait</span>
@ -39,13 +39,9 @@ Execute CMD on the Agent daemonic process
* **inSendOutputToOrchestratorLogsBool** – True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True
* **inSendOutputToOrchestratorLogsBool** – True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True
* **inCMDEncodingStr** – Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is “cp1251” early was “cp866” - need test
!ATTENTION! If you need to start absolutely encapsulated app - set this flag as False. If you set True - the app output will come to Agent
:param inCMDEncodingStr: Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is “cp1251” early was “cp866” - need test