<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Edit config file on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3d6bd75b0b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3d6bd75b0b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/3d6bd75b0b/</id><updated>2022-02-14T22:15:09.463000Z</updated><subtitle>Recent posts to Edit config file on Raspberry Pi</subtitle><entry><title>Edit config file on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3d6bd75b0b/?limit=25#a6db" rel="alternate"/><published>2022-02-14T22:15:09.463000Z</published><updated>2022-02-14T22:15:09.463000Z</updated><author><name>cdfizz17</name><uri>https://forge.codesys.com/u/cdfizz17/</uri></author><id>https://forge.codesys.comb93ad193a8cca2f4631d2f799aa6861503305b29</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have found the issue. SysProcess.SysProcessExecute has a restriction on allowed characters. Only alpha numeric and the following are allowed:&lt;/p&gt;
&lt;p&gt;.-+_ :/&amp;gt;"&lt;/p&gt;
&lt;p&gt;So my code does not work due to the '#' symbol.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Edit config file on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3d6bd75b0b/?limit=25#a404" rel="alternate"/><published>2022-02-03T06:04:59.359000Z</published><updated>2022-02-03T06:04:59.359000Z</updated><author><name>cdfizz17</name><uri>https://forge.codesys.com/u/cdfizz17/</uri></author><id>https://forge.codesys.com51fef6f2971a7ba89a8c9799f3311eb23f8781d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm having trouble editing a configuration file using the SysProcess library.&lt;br/&gt;
I have followed advice and added the following to CODESYSControl_User.cfg:&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.0&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;shutdown&lt;/span&gt;
&lt;span class="na"&gt;Command.1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;sed&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I tested my code using the shutdown command, and this was successful. The sed command does not work, instead returns code 25.&lt;br/&gt;
&lt;img src="./attachment/sed_issue.png" width="50%"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>