<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SysProcess.SysProcess.Execute.Command how to start linux program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/</id><updated>2020-02-27T16:01:46.067000Z</updated><subtitle>Recent posts to SysProcess.SysProcess.Execute.Command how to start linux program</subtitle><entry><title>SysProcess.SysProcess.Execute.Command how to start linux program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/?limit=25#108b" rel="alternate"/><published>2020-02-27T16:01:46.067000Z</published><updated>2020-02-27T16:01:46.067000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.coma30e6c4f04391e02f6afd3290cc5b32cea264dd5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I think it is not allowed to combine commands / echo + netcat&lt;/p&gt;
&lt;p&gt;stop the service by:&lt;br/&gt;
sudo /etc/init.d/codesyscontrol stop&lt;/p&gt;
&lt;p&gt;start it manually by&lt;br/&gt;
cd /var/opt/codesys&lt;br/&gt;
sudo /opt/codesys/bin/codesyscontrol_armv6l_raspberry.bin -d /etc/CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;Once again I would recommend to do this UDP sending stuff by netbase services library like in the link in the upper post.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysProcess.SysProcess.Execute.Command how to start linux program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/?limit=25#6ee7" rel="alternate"/><published>2020-02-27T16:01:43.834000Z</published><updated>2020-02-27T16:01:43.834000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.com6dee8741d1c3856639f64d9d42d7fb7025256531</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In Your test program netcat was executed but the result was not delivered to the SysProcessCommand2 in the IEC code.&lt;br/&gt;
Can You test again program netcat to for example send some UDP packet, it will be for shure that it was executed properly or not.&lt;br/&gt;
When I try command ```&lt;/p&gt;
&lt;p&gt;"echo message &lt;code&gt;date +%s&lt;/code&gt; | nc -u -w 0 192.168.1.1 2000"&lt;/p&gt;
&lt;p&gt;``` UDP packet is not sended, probably netcat with this parameter is not executed.&lt;br/&gt;
Can You explain how to run this debug mode from previous post?&lt;/p&gt;
&lt;p&gt;In CODESYSControl_User.cfg I have:&lt;br/&gt;
&lt;span&gt;[SysProcess]&lt;/span&gt;&lt;br/&gt;
Command=AllowAll&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysProcess.SysProcess.Execute.Command how to start linux program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/?limit=25#edf1" rel="alternate"/><published>2020-02-27T16:01:43.032000Z</published><updated>2020-02-27T16:01:43.032000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comced2180203496f4d2b317c96212c157c802d260c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
not sure what exactly you want to archive but I would recommend to send or receive UDP frames&lt;br/&gt;
that way:&lt;br/&gt;
 l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?t=6625&amp;amp;p=13743&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?t=6625#p13743&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysProcess.SysProcess.Execute.Command how to start linux program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/?limit=25#0fc9" rel="alternate"/><published>2020-02-27T16:01:42.258000Z</published><updated>2020-02-27T16:01:42.258000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.com5e4ceeb4b49c642e2f272f6f896a10f302f1dc92</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;How do you get this debug info?&lt;/p&gt;
&lt;p&gt;Can You try command &amp;gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
"echo message &lt;code&gt;date +%s&lt;/code&gt; | nc -u -w 0 192.168.1.1 2000"&lt;/p&gt;
&lt;p&gt;This should send UDP message "message &lt;code&gt;date +%s&lt;/code&gt;" to 192.168.1.1 on port 2000. &lt;br/&gt;
In Your test program netcat was executed, but I cant send UDP message.&lt;br/&gt;
If somethisg is not clear feel free to ask.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysProcess.SysProcess.Execute.Command how to start linux program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/?limit=25#4149" rel="alternate"/><published>2020-02-27T16:01:40.063000Z</published><updated>2020-02-27T16:01:40.063000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comf0013315286893e29fb55df43c6d0eac72a8f891</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
hm.. looks like a bug,&lt;br/&gt;
I see if I add the command to /etc/CODESYSControl_User.cfg:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysProcess]&lt;/span&gt;&lt;br/&gt;
Command.0=shutdown&lt;br/&gt;
Command.1=netcat&lt;/p&gt;
&lt;p&gt;and start the runtime manually ( to have more debug info), we see that netcat is executed, anyway somehow the result is not delivered to the SysProcessCommand2 in the IEC code.&lt;br/&gt;
Seems a to be a bug. &lt;br/&gt;
Please add a bugreport with your application attached to the store -&amp;gt; my question -&amp;gt; bugreport&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: netcat.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4856"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysProcess.SysProcess.Execute.Command how to start linux program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/dd10c05718/?limit=25#7bc0" rel="alternate"/><published>2020-02-27T16:01:39.290000Z</published><updated>2020-02-27T16:01:39.290000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.com94234d752e33105c58285f8b1b52d25a97fdbc6f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If its possible to start linux programs from &amp;gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
SysProcess.SysProcess.ExecuteCommand2&lt;br/&gt;
 function?&lt;br/&gt;
Simple command like ```&lt;/p&gt;
&lt;p&gt;sudo reboot&lt;/p&gt;
&lt;p&gt;``` is working but when I try to use program &amp;gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
netcat&lt;br/&gt;
 then nothing happen. Even when I create script with netcat command and I will run this script from codesys its not working. When I run this script from shell its working properly.&lt;br/&gt;
This is some codesys limitation or I am doing something wrong?&lt;br/&gt;
Somebody try to start any linux program from codesys?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>