<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Execute a .py file with Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/05e95cfa39/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/05e95cfa39/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/05e95cfa39/</id><updated>2025-09-03T09:35:11.598000Z</updated><subtitle>Recent posts to Execute a .py file with Codesys</subtitle><entry><title>Execute a .py file with Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/05e95cfa39/?limit=25#164b" rel="alternate"/><published>2025-09-03T09:35:11.598000Z</published><updated>2025-09-03T09:35:11.598000Z</updated><author><name>alexgooi</name><uri>https://forge.codesys.com/u/alexgooi/</uri></author><id>https://forge.codesys.com09c32cd4c7f2b92dfb78a7956f6b2644dd32bec2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello yann, &lt;/p&gt;
&lt;p&gt;In the past I have experimented with the execution of Linux commands using Codesys.&lt;br/&gt;
Maybe this article helps: &lt;a href="https://www.linkedin.com/pulse/run-linux-commands-from-codesys-jouke-aalvanger" rel="nofollow"&gt;https://www.linkedin.com/pulse/run-linux-commands-from-codesys-jouke-aalvanger&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you are able to execute Linux commands in Codesys, you can run the Python script. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Execute a .py file with Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/05e95cfa39/?limit=25#d382" rel="alternate"/><published>2025-08-26T09:40:19.533000Z</published><updated>2025-08-26T09:40:19.533000Z</updated><author><name>yann2021</name><uri>https://forge.codesys.com/u/yann2021/</uri></author><id>https://forge.codesys.comc5bdac575d70bbe2f3939a71d40a30adf7aa5118</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a Raspberry Pi 3 which has a printer connected to his USB port.&lt;br/&gt;
I have a PiFace Board on the Raspberry.&lt;br/&gt;
I have a python script file (.py) to print a logo + a text.&lt;/p&gt;
&lt;p&gt;When I push a button on the PiFace I would like to execute the python script file.&lt;br/&gt;
How can I do that ?&lt;/p&gt;
&lt;p&gt;Many thanks for your help and advices!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>