<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Python script ends abruptly</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/</id><updated>2020-02-27T14:46:24.514000Z</updated><subtitle>Recent posts to Python script ends abruptly</subtitle><entry><title>Python script ends abruptly</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/?limit=25#76bd" rel="alternate"/><published>2020-02-27T14:46:24.514000Z</published><updated>2020-02-27T14:46:24.514000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com7319e1a9f5c2083a700457ad66176a73897c8967</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Mazahar.&lt;/p&gt;
&lt;p&gt;Your problem was filed on our Jira Database as issue &lt;a class="" href="http://jira.3s-software.com/browse/TM-232" rel="nofollow"&gt;TM-232&lt;/a&gt;, so it will be fixed eventually.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python script ends abruptly</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/?limit=25#800b" rel="alternate"/><published>2020-02-27T14:46:23.976000Z</published><updated>2020-02-27T14:46:23.976000Z</updated><author><name>mazahar</name><uri>https://forge.codesys.com/u/mazahar/</uri></author><id>https://forge.codesys.comfd281e308280a47f84878fa4bdb85e7fffa1f420</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Martin,&lt;br/&gt;
Thank you for the quick response. My python script indeed had some prints to the standard output. Deleting them fixed the issue.&lt;/p&gt;
&lt;p&gt;Many Thanks,&lt;br/&gt;
Mazahar S&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python script ends abruptly</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/?limit=25#e175" rel="alternate"/><published>2020-02-27T14:46:23.443000Z</published><updated>2020-02-27T14:46:23.443000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com782f93cede57ab26c6e48c7c1dc64bbe5bf34283</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Mazahar,&lt;/p&gt;
&lt;p&gt;could it be that your python script writes quite a lot to the standard output and/or standard error?&lt;/p&gt;
&lt;p&gt;If that's the case then one of the streams, which are used to redirect the output of the process, could be full and block the process until its terminated.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python script ends abruptly</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/?limit=25#3d72" rel="alternate"/><published>2020-02-27T14:46:21.933000Z</published><updated>2020-02-27T14:46:21.933000Z</updated><author><name>mazahar</name><uri>https://forge.codesys.com/u/mazahar/</uri></author><id>https://forge.codesys.comf5396ade2490c74c69d5ed608a3db92cbff481cc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Martin,&lt;br/&gt;
The Wait for exit is configured to 20 mins. The test program is terminated after 20 mins. But the python script when executed from Windows command line finishes execution well within 20 mins.&lt;/p&gt;
&lt;p&gt;Many Thanks,&lt;br/&gt;
Mazahar S&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python script ends abruptly</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/?limit=25#8fba" rel="alternate"/><published>2020-02-27T14:46:21.398000Z</published><updated>2020-02-27T14:46:21.398000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.comead73073a3f516dacadd0f8a637c56e0ef3f48d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Without further information I can only guess but the configuration entry "Wait for exit" is empty? Otherwise the program is terminated after the specified time.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python script ends abruptly</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/d3b9e16c01/?limit=25#3ca5" rel="alternate"/><published>2020-02-27T14:46:19.897000Z</published><updated>2020-02-27T14:46:19.897000Z</updated><author><name>mazahar</name><uri>https://forge.codesys.com/u/mazahar/</uri></author><id>https://forge.codesys.com694a025299385b6ac63acaaed9ea66509ae51ac6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I have developed a python script for performing a series of tasks and this script is being called from TestManager using System command "ExecuteExternalCommand". The script runs well for a while, but after sometime it stops execution and the test manager times out. However the script works well and executes till the end when executed from Windows command line. I want to know if there is way to debug the python script execution status or any way to know the reason behind the script execution being stalled after a while.&lt;/p&gt;
&lt;p&gt;Many Thanks,&lt;br/&gt;
Mazahar S&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>