<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Supported commands with SysProcess</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/031e2d1879/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/031e2d1879/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/031e2d1879/</id><updated>2020-05-26T11:11:06.982000Z</updated><subtitle>Recent posts to Supported commands with SysProcess</subtitle><entry><title>Supported commands with SysProcess</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/031e2d1879/?limit=25#b34e" rel="alternate"/><published>2020-05-26T11:11:06.982000Z</published><updated>2020-05-26T11:11:06.982000Z</updated><author><name>johnhastech</name><uri>https://forge.codesys.com/u/johnhastech/</uri></author><id>https://forge.codesys.coma0adfff0c47b4a94b48e55cb28ccbe07d001400f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I am developing a file browser for an ifm display (CR1059). The display OS is embedded linux (yocto).&lt;/p&gt;
&lt;p&gt;I have used the CAA file library with success, however, I can see there is a limitation when using this library. To open a file or directory you must enter the file path, but this is limited to 255 characters. Therefore it would only be possible to browse files and directories if the complete filepath is &amp;lt;= 255 characters.&lt;/p&gt;
&lt;p&gt;Because of this, I have been trying a different method using the SysProcess library. When using PuTTY, it is possible to browse directories very easily using the following commands:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="s1"&gt;'cd /this/file/path'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;Changes&lt;/span&gt; &lt;span class="n"&gt;directory&lt;/span&gt;
&lt;span class="s1"&gt;'ls -l'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;Lists&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;folders&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;extended&lt;/span&gt; &lt;span class="n"&gt;information&lt;/span&gt;
&lt;span class="s1"&gt;'cd ..'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;Goes&lt;/span&gt; &lt;span class="n"&gt;back&lt;/span&gt; &lt;span class="n"&gt;one&lt;/span&gt; &lt;span class="n"&gt;directory&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This method enables almost limitless file browsing. My problem is that I can't seem to use these commands with the SysProcess library in my Codesys project. If I change the directory, no error occurs, however, when using the command 'pwd' to print the working directory I can see the command has not worked. I thought that perhaps this was because I hadn't logged in to the terminal as I would usually do with PuTTY, so I used the command below and entered the password on successful execution.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="s1"&gt;'su root'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;When issuing the command 'whoami', it reports back that the active user is indeed 'root', but unfortunately the afore mentioned commands still don't work.&lt;/p&gt;
&lt;p&gt;The CODESYSControl.cfg file in the device has SysProcess configured for all commands:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysProcess]&lt;/span&gt;
&lt;span class="na"&gt;Command&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;AllowAll&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;My project info:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Device&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;ifm&lt;/span&gt; &lt;span class="n"&gt;Electronic&lt;/span&gt; &lt;span class="n"&gt;GmbH&lt;/span&gt; &lt;span class="n"&gt;CR1059&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt; &lt;span class="n"&gt;display&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ifm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gb&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;en&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;CR1059&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;OS&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;Embedded&lt;/span&gt; &lt;span class="n"&gt;Linux&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;14&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Yocto&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;Codesys&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;SP15&lt;/span&gt; &lt;span class="n"&gt;Patch&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; 
&lt;span class="n"&gt;SysProcess&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If there is a better way to achieve this, I would be very grateful for ideas and solutions!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>