<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/</id><updated>2020-02-27T16:03:07.937000Z</updated><subtitle>Recent posts to system command result</subtitle><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#29e5" rel="alternate"/><published>2020-02-27T16:03:07.937000Z</published><updated>2020-02-27T16:03:07.937000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com502d7ce2cd57c7e457fd3512394b43a9819dff0c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;that's what I already said:&lt;br/&gt;
It is not possible to get the result to the iec world...but you have a workaround!&lt;br/&gt;
BR &lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#1737" rel="alternate"/><published>2020-02-27T16:03:07.053000Z</published><updated>2020-02-27T16:03:07.053000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.combfaee96a2b31c079da6e86d8b702f9eb746a9cfd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How can I use the command "grep -i serial /proc/cpuinfo | cut -d" " -f2" with chardevice and take the result?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#1351" rel="alternate"/><published>2020-02-27T16:03:04.856000Z</published><updated>2020-02-27T16:03:04.856000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comf6d960998b7d970d9d15e771d48593c5c1c77ee3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you can call every shell command but you do not get the result/output of them back to the iec world.&lt;br/&gt;
that's the point, so you need in this case to use the char device example.&lt;/p&gt;
&lt;p&gt;Regards&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#a15c" rel="alternate"/><published>2020-02-27T16:03:04.085000Z</published><updated>2020-02-27T16:03:04.085000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.com9f5323e346ff6d29b00c9e7868ad26ffc74aba56</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any other way to run OS command and take back the result?&lt;br/&gt;
Because if I use your solution I can't run commands like in shell mode.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#aff5" rel="alternate"/><published>2020-02-27T16:03:01.858000Z</published><updated>2020-02-27T16:03:01.858000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com60ffa16f08d3fa28a2f29cbf48268e024ec8cd22</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you need to specify your startpos to read see screenshot.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Startpos.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=858"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#905f" rel="alternate"/><published>2020-02-27T16:03:01.073000Z</published><updated>2020-02-27T16:03:01.073000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.comb4660b30c83233d0e07a733041f2f49fd30fd45f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I try your solution but it gives a result string of 278 characters only, not include the serial number.&lt;br/&gt;
Is there any solution to call from codesys runtime a shell command and take the result?&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#38bc" rel="alternate"/><published>2020-02-27T16:03:00.275000Z</published><updated>2020-02-27T16:03:00.275000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com2bcf8d040118d811334937eefe202567e499c7e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;use this project from this link, and feel free to modify it to your needs:&lt;br/&gt;
 l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=5923&amp;amp;p=11084&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?f=21&amp;amp;t=5923#p11084&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;change szFilename: STRING := '/proc/cpuinfo';&lt;/p&gt;
&lt;p&gt;and somehow you need to get your information from the buffer which contains then /proc/cpuinfo ... see screenshot&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CharDevice.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=856"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=857" rel="nofollow"&gt;RaspberryPI_CharDeviceSnippet3.project &lt;span&gt;&lt;span&gt;[143.53 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>system command result</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/52794aff26/?limit=25#8211" rel="alternate"/><published>2020-02-27T16:02:58.070000Z</published><updated>2020-02-27T16:02:58.070000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.com93d75781a8be9f5d8efa0798fbf528553392b13f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please explain us how we can take return result in Plc application of system commands like:&lt;br/&gt;
"cat /proc/cpuinfo "?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>