<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[JavaScript Exec Problem]]></title><description><![CDATA[<p dir="auto">Hallo,<br />
ich habe noch ein paar 433MHZ Steckdosen und wollte sie in Iobroker einbinden.<br />
Sie sollen über ein Javascript gesteuert werden. Die Steckdosen lassen sich direkt im Terminal schalten<br />
sudo /home/pi/raspberry-remote/./send 11111 2 1<br />
Wenn ich sie aber in ein Javascript einbinde:<br />
on('javascript.0.433MHZ_Aktoren.Zwischenstecker_B', function (obj) {<br />
exec('sudo /home/pi/raspberry-remote/./send 11111 2 '+obj.state.val);<br />
});<br />
schalten die Steckdosen nicht. Im Javascript log sehe ich den Befehl, nur der Iobroker reagiert nicht<br />
Javascript führt aber andere Befehle wie z.B Exec(<code>sudo reboot</code>) aus.<br />
Wo liegt der Fehler ?<br />
liebe Grüße<br />
Robert</p>
]]></description><link>https://forum.iobroker.net/topic/84332/javascript-exec-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 11:31:45 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/84332.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Apr 2026 18:13:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to JavaScript Exec Problem on Sat, 18 Apr 2026 08:35:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: Thomas-Braun">@<bdi>Thomas-Braun</bdi></a> Super, Danke hat funktioniert !!!!!!!</p>
]]></description><link>https://forum.iobroker.net/post/1335155</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335155</guid><dc:creator><![CDATA[Robert300]]></dc:creator><pubDate>Sat, 18 Apr 2026 08:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to JavaScript Exec Problem on Fri, 17 Apr 2026 19:58:52 GMT]]></title><description><![CDATA[<p dir="auto">Ok, probiere ich morgen<br />
Danke</p>
]]></description><link>https://forum.iobroker.net/post/1335106</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335106</guid><dc:creator><![CDATA[Robert300]]></dc:creator><pubDate>Fri, 17 Apr 2026 19:58:52 GMT</pubDate></item><item><title><![CDATA[Reply to JavaScript Exec Problem on Fri, 17 Apr 2026 19:56:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert300" aria-label="Profile: Robert300">@<bdi>Robert300</bdi></a><br />
Mit einfachen Dateioperationen?</p>
<pre><code>mv /da/wo/die/datei/jetzt/liegt /da/wo/die/datei/hin/soll
</code></pre>
]]></description><link>https://forum.iobroker.net/post/1335105</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335105</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Fri, 17 Apr 2026 19:56:18 GMT</pubDate></item><item><title><![CDATA[Reply to JavaScript Exec Problem on Fri, 17 Apr 2026 19:53:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: Thomas-Braun">@<bdi>Thomas-Braun</bdi></a> stehe jetzt auf dem Schlauch.... wie bekomme ich das Javaskript da rein und wie rufe ich es auf</p>
]]></description><link>https://forum.iobroker.net/post/1335104</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335104</guid><dc:creator><![CDATA[Robert300]]></dc:creator><pubDate>Fri, 17 Apr 2026 19:53:20 GMT</pubDate></item><item><title><![CDATA[Reply to JavaScript Exec Problem on Fri, 17 Apr 2026 19:44:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert300" aria-label="Profile: Robert300">@<bdi>Robert300</bdi></a></p>
<p dir="auto">Übliches Rechte-Ding. Der user 'iobroker' darf  den Befehl erst gar nicht ausführen und er hat auch im /home des users 'pi' nix zu melden. Leg das Skript unter /usr/local/bin ab und ruf es von dort aus auf.</p>
]]></description><link>https://forum.iobroker.net/post/1335103</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335103</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Fri, 17 Apr 2026 19:44:28 GMT</pubDate></item><item><title><![CDATA[Reply to JavaScript Exec Problem on Fri, 17 Apr 2026 19:43:21 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert300" aria-label="Profile: Robert300">@<bdi>Robert300</bdi></a> <a href="/post/1335092">sagte</a>:</p>
<p dir="auto">/home/pi/</p>
</blockquote>
<p dir="auto">Da darf der iobroker nicht rein</p>
]]></description><link>https://forum.iobroker.net/post/1335102</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335102</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Fri, 17 Apr 2026 19:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to JavaScript Exec Problem on Fri, 17 Apr 2026 19:43:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: Thomas-Braun">@<bdi>Thomas-Braun</bdi></a> selbst wenn ich sudo weg lasse, geht es nicht</p>
<p dir="auto">function TestRemote() {<br />
exec('/home/pi/raspberry-remote/send 11111 2 1')<br />
}<br />
TestRemote();</p>
]]></description><link>https://forum.iobroker.net/post/1335100</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335100</guid><dc:creator><![CDATA[Robert300]]></dc:creator><pubDate>Fri, 17 Apr 2026 19:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to JavaScript Exec Problem on Fri, 17 Apr 2026 18:56:00 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert300" aria-label="Profile: Robert300">@<bdi>Robert300</bdi></a> <a href="/post/1335092">sagte</a>:</p>
<p dir="auto">Wo liegt der Fehler ?</p>
</blockquote>
<p dir="auto">In der Verwendung von sudo.</p>
]]></description><link>https://forum.iobroker.net/post/1335095</link><guid isPermaLink="true">https://forum.iobroker.net/post/1335095</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Fri, 17 Apr 2026 18:56:00 GMT</pubDate></item></channel></rss>